zzzweakman commited on
Commit
0eed5e1
·
1 Parent(s): 38c121f

fix: unet config

Browse files
Files changed (2) hide show
  1. README.md +5 -0
  2. inference.sh +6 -2
README.md CHANGED
@@ -174,6 +174,11 @@ export FFMPEG_PATH=/musetalk/ffmpeg-4.4-amd64-static
174
  You can download weights manually as follows:
175
 
176
  1. Download our trained [weights](https://huggingface.co/TMElyralab/MuseTalk).
 
 
 
 
 
177
 
178
  2. Download the weights of other components:
179
  - [sd-vae-ft-mse](https://huggingface.co/stabilityai/sd-vae-ft-mse)
 
174
  You can download weights manually as follows:
175
 
176
  1. Download our trained [weights](https://huggingface.co/TMElyralab/MuseTalk).
177
+ ```bash
178
+ # !pip install -U "huggingface_hub[cli]"
179
+ export HF_ENDPOINT=https://hf-mirror.com
180
+ huggingface-cli download TMElyralab/MuseTalk --local-dir models/
181
+ ```
182
 
183
  2. Download the weights of other components:
184
  - [sd-vae-ft-mse](https://huggingface.co/stabilityai/sd-vae-ft-mse)
inference.sh CHANGED
@@ -20,9 +20,11 @@ config_path="./configs/inference/test.yaml"
20
  if [ "$version" = "v1.0" ]; then
21
  model_dir="./models/musetalk"
22
  unet_model_path="$model_dir/pytorch_model.bin"
 
23
  elif [ "$version" = "v1.5" ]; then
24
  model_dir="./models/musetalkV15"
25
  unet_model_path="$model_dir/unet.pth"
 
26
  else
27
  echo "Invalid version specified. Please use v1.0 or v1.5."
28
  exit 1
@@ -33,10 +35,12 @@ if [ "$version" = "v1.0" ]; then
33
  python3 -m scripts.inference \
34
  --inference_config "$config_path" \
35
  --result_dir "./results/test" \
36
- --unet_model_path "$unet_model_path"
 
37
  elif [ "$version" = "v1.5" ]; then
38
  python3 -m scripts.inference_alpha \
39
  --inference_config "$config_path" \
40
  --result_dir "./results/test" \
41
- --unet_model_path "$unet_model_path"
 
42
  fi
 
20
  if [ "$version" = "v1.0" ]; then
21
  model_dir="./models/musetalk"
22
  unet_model_path="$model_dir/pytorch_model.bin"
23
+ unet_config="$model_dir/musetalk.json"
24
  elif [ "$version" = "v1.5" ]; then
25
  model_dir="./models/musetalkV15"
26
  unet_model_path="$model_dir/unet.pth"
27
+ unet_config="$model_dir/musetalk.json"
28
  else
29
  echo "Invalid version specified. Please use v1.0 or v1.5."
30
  exit 1
 
35
  python3 -m scripts.inference \
36
  --inference_config "$config_path" \
37
  --result_dir "./results/test" \
38
+ --unet_model_path "$unet_model_path" \
39
+ --unet_config "$unet_config"
40
  elif [ "$version" = "v1.5" ]; then
41
  python3 -m scripts.inference_alpha \
42
  --inference_config "$config_path" \
43
  --result_dir "./results/test" \
44
+ --unet_model_path "$unet_model_path" \
45
+ --unet_config "$unet_config"
46
  fi