kleinhe commited on
Commit
a995483
·
1 Parent(s): 2a52ce8

render_mode

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,7 +67,7 @@ def demo(prompt, mode, condition, render_mode="joints", skip_steps=0, out_size=1
67
 
68
  if render_mode == "joints":
69
  pics = visual.joints_process(output, prompt)
70
- elif render_mode == "pyrender":
71
  meshes, _ = visual.get_mesh(output)
72
  pics = visual.pyrender_process(meshes, out_size, out_size)
73
 
@@ -108,7 +108,7 @@ def t2m_demo():
108
  gr.Markdown("<div align='center'> <h2> 🤷‍♂️ SemanticBoost: Elevating Motion Generation with Augmented Textual Cues </span> </h2> \
109
  <a style='font-size:18px;color: #000000' href='https://arxiv.org/abs/2211.12194'>Arxiv</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
110
  <a style='font-size:18px;color: #000000' href='https://sadtalker.github.io'>Homepage</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
111
- <a style='font-size:18px;color: #000000' href='https://github.com/Winfredy/SadTalker'> Github </div>")
112
 
113
  with gr.Row().style(equal_height=True):
114
  with gr.Column(variant='panel'):
@@ -124,7 +124,7 @@ def t2m_demo():
124
  out_size = gr.Number(value=1024, label="Resolution", info="The resolution of output videos", minimum=224, maximum=2048, precision=0)
125
 
126
  with gr.Row():
127
- render_mode = gr.Radio(['joints','pyrender'], value='joints', label='Render', info="If render results to 3D meshes? Pyrender need more time.")
128
  tada_role = gr.Dropdown(files, value="None", multiselect=False, label="TADA Role", info="Choose 3D role to render")
129
 
130
  with gr.Row():
 
67
 
68
  if render_mode == "joints":
69
  pics = visual.joints_process(output, prompt)
70
+ elif render_mode.startswith("pyrender"):
71
  meshes, _ = visual.get_mesh(output)
72
  pics = visual.pyrender_process(meshes, out_size, out_size)
73
 
 
108
  gr.Markdown("<div align='center'> <h2> 🤷‍♂️ SemanticBoost: Elevating Motion Generation with Augmented Textual Cues </span> </h2> \
109
  <a style='font-size:18px;color: #000000' href='https://arxiv.org/abs/2211.12194'>Arxiv</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
110
  <a style='font-size:18px;color: #000000' href='https://sadtalker.github.io'>Homepage</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
111
+ <a style='font-size:18px;color: #000000' href='https://github.com/blackgold3/SemanticBoost'> Github </div>")
112
 
113
  with gr.Row().style(equal_height=True):
114
  with gr.Column(variant='panel'):
 
124
  out_size = gr.Number(value=1024, label="Resolution", info="The resolution of output videos", minimum=224, maximum=2048, precision=0)
125
 
126
  with gr.Row():
127
+ render_mode = gr.Radio(['joints','pyrender_fast', 'pyrender_slow'], value='joints', label='Render', info="If render results to 3D meshes? Pyrender need more time.")
128
  tada_role = gr.Dropdown(files, value="None", multiselect=False, label="TADA Role", info="Choose 3D role to render")
129
 
130
  with gr.Row():