salomonsky commited on
Commit
2a9297b
·
1 Parent(s): a0def52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -8,7 +8,6 @@ try:
8
  except:
9
  in_webui = False
10
 
11
-
12
  def toggle_audio_file(choice):
13
  if choice == False:
14
  return gr.update(visible=True), gr.update(visible=False)
@@ -42,11 +41,9 @@ with gr.Blocks(analytics_enabled=False) as demo:
42
  with gr.TabItem('Settings'):
43
  gr.Markdown("need help? please visit our [best practice page](https://github.com/OpenTalker/SadTalker/blob/main/docs/best_practice.md) for more detials")
44
  with gr.Column(variant='panel'):
45
- # width = gr.Slider(minimum=64, elem_id="img2img_width", maximum=2048, step=8, label="Manually Crop Width", value=512) # img2img_width
46
- # height = gr.Slider(minimum=64, elem_id="img2img_height", maximum=2048, step=8, label="Manually Crop Height", value=512) # img2img_width
47
  pose_style = gr.Slider(minimum=0, maximum=46, step=1, label="Pose style", value=0) #
48
- size_of_image = gr.Radio([256, 512], value=256, label='face model resolution', info="use 256/512 model?") #
49
- preprocess_type = gr.Radio(['crop', 'resize','full', 'extcrop', 'extfull'], value='crop', label='preprocess', info="How to handle input image?")
50
  is_still_mode = gr.Checkbox(label="Still Mode (fewer hand motion, works with preprocess `full`)")
51
  batch_size = gr.Slider(label="batch size in generation", step=1, maximum=10, value=2)
52
  enhancer = gr.Checkbox(label="GFPGAN as Face enhancer")
 
8
  except:
9
  in_webui = False
10
 
 
11
  def toggle_audio_file(choice):
12
  if choice == False:
13
  return gr.update(visible=True), gr.update(visible=False)
 
41
  with gr.TabItem('Settings'):
42
  gr.Markdown("need help? please visit our [best practice page](https://github.com/OpenTalker/SadTalker/blob/main/docs/best_practice.md) for more detials")
43
  with gr.Column(variant='panel'):
 
 
44
  pose_style = gr.Slider(minimum=0, maximum=46, step=1, label="Pose style", value=0) #
45
+ size_of_image = gr.Radio([256, 512], value=512, label='face model resolution', info="use 256/512 model?") #
46
+ preprocess_type = gr.Radio(['crop', 'resize','full', 'extcrop', 'extfull'], value='full', label='preprocess', info="How to handle input image?")
47
  is_still_mode = gr.Checkbox(label="Still Mode (fewer hand motion, works with preprocess `full`)")
48
  batch_size = gr.Slider(label="batch size in generation", step=1, maximum=10, value=2)
49
  enhancer = gr.Checkbox(label="GFPGAN as Face enhancer")