Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

示例命令行有误 #33

Open
fa1c4 opened this issue Sep 14, 2022 · 1 comment
Open

示例命令行有误 #33

fa1c4 opened this issue Sep 14, 2022 · 1 comment

Comments

@fa1c4
Copy link

fa1c4 commented Sep 14, 2022

$ python ../../mtts/synthesize.py -d cuda --c config.yaml --checkpoint ./checkpoints/checkpoint_1240000.pth.tar -i input.txt
usage: synthesize.py [-h] [-i INPUT] [--duration DURATION] [--output_dir OUTPUT_DIR] --checkpoint CHECKPOINT
[-c CONFIG] [-d {cuda,cpu}]
synthesize.py: error: ambiguous option: --c could match --checkpoint, --config

@DukeDong
Copy link

我做了下debug,很多底层错误被掩盖了,修改了好多地方:

  1. mtts文件夹下的models->vocoder->VocGan->model中的代码import 出错,我的修改办法是把models->vocoder->VocGan->utils拷贝至models->vocoder->VocGan->model中,重命名为xx,然后再generator.py中修改from .utils.utils为from .xx.utls;
  2. synthesize.py中的
    lines = open(args.input).read().split('\n')
    改为
    lines = open(args.input,encoding='utf-8').read().split('\n')
  3. dataset.py中的所有open文件选项添加utf-8编码选择,同2;
  4. fs2_model.py中所有open文件选项添加utf-8编码选择,同2。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants