一、搭建环境
pytorch2环境下安装python=3.6 cpu版的torch
二、运行
1、数据集下载错误》继续重新运行下载即可
2、agg模型下载报错unexpected EOF, expected 73963 more bytes. The file might be corrupted
是因为网络导致下载的权重文件不全,删除(在C:\Users\用户名/.cache\torch\checkpoints下)重新下载即可
3、报错
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.RuntimeError:
An attempt has been made to start a new process befo
解决办法: