dailenson / SDT

This repository is the official implementation of Disentangling Writer and Character Styles for Handwriting Generation (CVPR23).
MIT License
956 stars 81 forks source link

No such file or directory: 'checkpoint_path'报错 #45

Open ANJR44 opened 7 months ago

ANJR44 commented 7 months ago

在运行python user_generate.py --pretrained_model checkpoint_path --style_path style_samples代码后弹出No such file or directory: 'checkpoint_path'错误,我已经下载了checkpoint文件存放在saved_weights\Chinese文件夹中了

dailenson commented 7 months ago

在运行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

ANJR44 commented 7 months ago

有了新的问题Permission denied: 'saved_weights\Chinese'权限不够,但是我已经赋予了所有用户完全控制的权限

13232308597 commented 7 months ago

有了新的问题Permission denied: 'saved_weights\Chinese'权限不够,但是我已经赋予了所有用户完全控制的权限

  1. 打开PyCharm,并打开你的项目。

  2. 在菜单栏中选择 "Run" -> "Edit Configurations"。(“运行”->“修改编辑配置”)

  3. 在弹出的窗口中,选择你要运行的脚本对应的配置。

  4. 在 "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)

  1. 点击 "OK" 保存配置。
ANJR44 commented 7 months ago

可以了,感谢!!!