No such file or directory: 'checkpoint_path'报错
在运行python user_generate.py --pretrained_model checkpoint_path --style_path style_samples代码后弹出No such file or directory: 'checkpoint_path'错误,我已经下载了checkpoint文件存放在saved_weights\Chinese文件夹中了
在运行python user_generate.py --pretrained_model checkpoint_path --style_path style_samples代码后弹出No such file or directory: 'checkpoint_path'错误,我已经下载了checkpoint文件存放在saved_weights\Chinese文件夹中了
windows系统下把checkpoint_path这个字符改成saved_weights\Chinese,linux系统下改成saved_weights/Chinese
有了新的问题Permission denied: 'saved_weights\Chinese'权限不够,但是我已经赋予了所有用户完全控制的权限
有了新的问题Permission denied: 'saved_weights\Chinese'权限不够,但是我已经赋予了所有用户完全控制的权限
-
打开PyCharm,并打开你的项目。
-
在菜单栏中选择 "Run" -> "Edit Configurations"。(“运行”->“修改编辑配置”)
-
在弹出的窗口中,选择你要运行的脚本对应的配置。
-
在 "Script parameters"(“脚本形参”) 字段中添加参数。在这个例子中,你需要添加
--pretrained_model参数和对应的路径。
示例:--pretrained_model C:\desktop\CVPR2023_SDT\saved_weights\Chinese\checkpoint-iter199999.pth(在文件中找到checkpoint的路径,记得要C:\desktop\CVPR2023_SDT\saved_weights\Chinese后要加上\checkpoint-iter199999.pth)
- 点击 "OK" 保存配置。
可以了,感谢!!!