Closed mysxs closed 6 months ago
Hi @mysxs, did you specify the --infer_expt_dir
when inference? You can refer to this part as the instruction.
Hi @RMSnow ,thank your apply,OK I fixed this issue and a new problem appeared: when I run the inference, an error is reported, and it is written in Amphion/models/base/new_inference.py
that it says ckpt_list = [ckpt for ckpt in Path(vocoder_dir).glob("*.pt")]
that need a .pt file, but I use Hifi-Gan, It doesn't have a .pt file, there are many .bin files, which .bin file should I specify?
Hi @mysxs !
You may refer to issue 105 for the checkpoint loading problem.
We are going to provide an official update to solve this issue later. Before that, you could use our pretrained BigVGAN vocoder if you don't want to implement your own inference code.
You may find quick reference guides from our hugging face pages svc and vocoder.
If you have any other problem, feel free to contact us!
Hi Adorable-Qin~ I have resolved the issue. Thank you for your response.
Glad to hear that!
We will close this issue. Feel free to re-open it once you have other questions!
Problem Overview
In
Amphion/bins/svc/inference.py
, acoustics_dir is not assigned a value and is set to None. Is this correct? Because while debugging inference.py, I found that due to acoustics_dir being None, an error occurs at line 192 inAmphion/models/svc/base/svc_dataset.py: ``spk2id_path = os.path.join(args.acoustics_dir, cfg.preprocess.spk2id)
. The error message isTypeError: expected str, bytes, or os.PathLike object, not NoneType.
Steps Taken
Amphion/bins/svc/inference.py:
Screenshots