Code proplem !!: phn2num = model.args.phn2num ----- AttributeError: 'Namespace' object has no attribute 'phn2num'
i try to run the file named inference_speech_editing.py. i download giga330m.pth to my local space and load the model use the path:model = voicecraft.VoiceCraft.from_pretrained(pretrained_model_name_or_path = "/home/zhang/VoiceCraft/pretrained_models/"). The code seems will load this model by config.json. but the error will happen when i meet code :phn2num = model.args.phn2num. how this happen?
关闭于 2025-04-11 0 条评论