adaface-neurips commited on
Commit
54eab22
1 Parent(s): 8c72c0e

improve explanation

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -307,7 +307,7 @@ with gr.Blocks(css=css) as demo:
307
  ])
308
 
309
  image_embed_scale = gr.Slider(
310
- label="Image Embedding Scale",
311
  info="The scale of the ID-Animator image embedding (influencing coarse facial features and poses)",
312
  minimum=0,
313
  maximum=2,
@@ -323,7 +323,7 @@ with gr.Blocks(css=css) as demo:
323
  value=0.8,
324
  )
325
  adaface_id_cfg_scale = gr.Slider(
326
- label="AdaFace Embedding ID CFG Scale",
327
  info="The scale of the AdaFace ID embeddings (influencing fine facial features and details)",
328
  minimum=0.5,
329
  maximum=6,
@@ -341,12 +341,13 @@ with gr.Blocks(css=css) as demo:
341
  maximum=21,
342
  step=1,
343
  value=16,
 
344
  )
345
  is_adaface_enabled = gr.Checkbox(label="Enable AdaFace",
346
  info="Enable AdaFace for better face details. If unchecked, it falls back to ID-Animator (https://huggingface.co/spaces/ID-Animator/ID-Animator).",
347
  value=True)
348
  adaface_ckpt_path = gr.Textbox(
349
- label="AdaFace ckpt Path",
350
  placeholder=args.adaface_ckpt_path,
351
  value=args.adaface_ckpt_path,
352
  )
@@ -354,8 +355,8 @@ with gr.Blocks(css=css) as demo:
354
  adaface_power_scale = gr.Slider(
355
  label="AdaFace Embedding Power Scale",
356
  info="Increase this scale slightly only if the face is defocused or the face details are not clear",
357
- minimum=0.7,
358
- maximum=1.3,
359
  step=0.1,
360
  value=1,
361
  )
@@ -376,14 +377,14 @@ with gr.Blocks(css=css) as demo:
376
  value="face portrait, (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime), text, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, bare breasts, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, long neck, UnrealisticDream",
377
  )
378
  num_steps = gr.Slider(
379
- label="Number of sample steps",
380
  minimum=25,
381
  maximum=100,
382
  step=1,
383
  value=40,
384
  )
385
  guidance_scale = gr.Slider(
386
- label="Guidance scale",
387
  minimum=1.0,
388
  maximum=10.0,
389
  step=0.5,
@@ -396,7 +397,8 @@ with gr.Blocks(css=css) as demo:
396
  step=1,
397
  value=985,
398
  )
399
- randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
 
400
  with gr.Column():
401
  result_video = gr.Video(label="Generated Animation", interactive=False)
402
 
 
307
  ])
308
 
309
  image_embed_scale = gr.Slider(
310
+ label="ID-Animator Image Embedding Scale",
311
  info="The scale of the ID-Animator image embedding (influencing coarse facial features and poses)",
312
  minimum=0,
313
  maximum=2,
 
323
  value=0.8,
324
  )
325
  adaface_id_cfg_scale = gr.Slider(
326
+ label="AdaFace CFG Scale",
327
  info="The scale of the AdaFace ID embeddings (influencing fine facial features and details)",
328
  minimum=0.5,
329
  maximum=6,
 
341
  maximum=21,
342
  step=1,
343
  value=16,
344
+ interactive=False,
345
  )
346
  is_adaface_enabled = gr.Checkbox(label="Enable AdaFace",
347
  info="Enable AdaFace for better face details. If unchecked, it falls back to ID-Animator (https://huggingface.co/spaces/ID-Animator/ID-Animator).",
348
  value=True)
349
  adaface_ckpt_path = gr.Textbox(
350
+ label="AdaFace checkpoint path",
351
  placeholder=args.adaface_ckpt_path,
352
  value=args.adaface_ckpt_path,
353
  )
 
355
  adaface_power_scale = gr.Slider(
356
  label="AdaFace Embedding Power Scale",
357
  info="Increase this scale slightly only if the face is defocused or the face details are not clear",
358
+ minimum=0.8,
359
+ maximum=1.2,
360
  step=0.1,
361
  value=1,
362
  )
 
377
  value="face portrait, (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime), text, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, bare breasts, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, long neck, UnrealisticDream",
378
  )
379
  num_steps = gr.Slider(
380
+ label="Number of sampling steps",
381
  minimum=25,
382
  maximum=100,
383
  step=1,
384
  value=40,
385
  )
386
  guidance_scale = gr.Slider(
387
+ label="Guidance scale (usually you don't need to change)",
388
  minimum=1.0,
389
  maximum=10.0,
390
  step=0.5,
 
397
  step=1,
398
  value=985,
399
  )
400
+ randomize_seed = gr.Checkbox(label="Randomize seed", value=False, info="Uncheck for reproducible results")
401
+
402
  with gr.Column():
403
  result_video = gr.Video(label="Generated Animation", interactive=False)
404