PlayVoice / whisper-vits-svc

Core Engine of Singing Voice Conversion & Singing Voice Clone
https://huggingface.co/spaces/maxmax20160403/sovits5.0
MIT License
2.68k stars 922 forks source link

UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weig ht_norm. #181

Open zdy121 opened 8 months ago

zdy121 commented 8 months ago

运行代码:python svc_trainer.py -c configs/base.yaml -n sovits5.0 报错信息:Batch size per GPU : 4 D:\ruanjian\Python\Anaconda3\lib\site-packages\torch\nn\utils\weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weig ht_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") self.file_writer = FileWriter( File "D:\ruanjian\Python\Anaconda3\lib\site-packages\torch\utils\tensorboard\writer.py", line 72, in init self.event_writer = EventFileWriter( File "D:\ruanjian\Python\Anaconda3\lib\site-packages\tensorboard\summary\writer\event_file_writer.py", line 72, in init tf.io.gfile.makedirs(logdir) File "D:\ruanjian\Python\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 513, in recursive_create_dir_v2 _pywrap_file_io.RecursivelyCreateDir(compat.path_to_bytes(path)) tensorflow.python.framework.errors_impl.FailedPreconditionError: logs\sovits5.0 is not a directory

我看到有人问相同的问题作者您回答:可能是pytorch版本要大于等于1.9 我的版本是2.1.2 想问一下作者怎么解决

ILG2021 commented 8 months ago

你手动创建logs\sovits5.0 看看 我用pycharm+venv,训练没有问题。

zdy121 commented 8 months ago

@ILG2021 感谢你的答疑,我试了重新创建文件夹并没有解决问题。

baijiny1 commented 7 months ago

同问,请问解决了吗