Skip to content

Commit 1d7d18d

Browse files
authored
Merge pull request Plachtaa#139 from sheiy/main
fix: args not match the md and argparse and can not download hf models
2 parents 498d808 + cd60228 commit 1d7d18d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README-ZH.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ python app_vc.py --checkpoint <path-to-checkpoint> --config <path-to-config>
6666

6767
然后在浏览器中打开 `http://localhost:7860/` 使用 Web 界面。
6868

69+
运行命令前先设置环境变量:
70+
`export export HUGGING_FACE_HUB_TOKEN={从https://huggingface.co/settings/tokens获取}`
71+
6972
歌声转换 Web UI:
7073
```bash
7174
python app_svc.py --checkpoint <path-to-checkpoint> --config <path-to-config>

app_svc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ def load_models(args):
2020
print(f"Using device: {device}")
2121
print(f"Using fp16: {fp16}")
2222
# f0 conditioned model
23-
if args.checkpoint_path is None or args.checkpoint_path == "":
23+
if args.checkpoint is None or args.checkpoint == "":
2424
dit_checkpoint_path, dit_config_path = load_custom_model_from_hf("Plachta/Seed-VC",
2525
"DiT_seed_v2_uvit_whisper_base_f0_44k_bigvgan_pruned_ft_ema_v2.pth",
2626
"config_dit_mel_seed_uvit_whisper_base_f0_44k.yml")
2727
else:
28-
print(f"Using custom checkpoint: {args.checkpoint_path}")
29-
dit_checkpoint_path = args.checkpoint_path
30-
dit_config_path = args.config_path
28+
print(f"Using custom checkpoint: {args.checkpoint}")
29+
dit_checkpoint_path = args.checkpoint
30+
dit_config_path = args.config
3131
config = yaml.safe_load(open(dit_config_path, "r"))
3232
model_params = recursive_munch(config["model_params"])
3333
model_params.dit_type = 'DiT'

0 commit comments

Comments
 (0)