wedyanessam commited on
Commit
2b0c039
·
verified ·
1 Parent(s): f71a8b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -23,18 +23,18 @@ from FantasyTalking.infer import load_models, main
23
  args_template = argparse.Namespace(
24
  fantasytalking_model_path="./models/fantasytalking_model.ckpt",
25
  wav2vec_model_dir="./models/wav2vec2-base-960h",
26
- wan_model_dir="./models/Wan2.1-I2V-14B-720P",
27
  image_path="",
28
  audio_path="",
29
  prompt="",
30
  output_dir="./output",
31
- image_size=512,
32
  audio_scale=1.0,
33
- prompt_cfg_scale=5.0,
34
- audio_cfg_scale=5.0,
35
- max_num_frames=81,
36
- inference_steps=20,
37
- fps=23,
38
  num_persistent_param_in_dit=None,
39
  seed=1111
40
  )
 
23
  args_template = argparse.Namespace(
24
  fantasytalking_model_path="./models/fantasytalking_model.ckpt",
25
  wav2vec_model_dir="./models/wav2vec2-base-960h",
26
+ wan_model_dir="./models/Wan2.1-I2V-14B-720P", # نقدر نشيله لو تبغي لاحقًا
27
  image_path="",
28
  audio_path="",
29
  prompt="",
30
  output_dir="./output",
31
+ image_size=384, # ⬅️ قللنا حجم الصورة
32
  audio_scale=1.0,
33
+ prompt_cfg_scale=3.0, # ⬅️ أقل شوية
34
+ audio_cfg_scale=3.0,
35
+ max_num_frames=36, # ⬅️ قللنا عدد الفريمات
36
+ inference_steps=8, # ⬅️ قللنا خطوات التوليد
37
+ fps=20, # ⬅️ أقل شوية عشان التوليد أسرع
38
  num_persistent_param_in_dit=None,
39
  seed=1111
40
  )