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

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

Open
zdy121 opened this issue Mar 4, 2024 · 3 comments

Comments

@zdy121
Copy link

zdy121 commented Mar 4, 2024

运行代码: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
Copy link

ILG2021 commented Mar 5, 2024

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

@zdy121
Copy link
Author

zdy121 commented Mar 5, 2024

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

@baijiny1
Copy link

baijiny1 commented Apr 8, 2024

同问,请问解决了吗

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

3 participants