FileNotFoundError: [Errno 2] No such file or directory: ‘cfg/darknet19_448.conv.23‘

运行train.py时,会有以下报错:
Traceback (most recent call last):
File “D:/postgratude_one/4.singleshotpose-master/train.py”, line 338, in
model.load_weights_until_last(initweightfile)
File “D:\postgratude_one\4.singleshotpose-master\darknet.py”, line 300, in load_weights_until_last
fp = open(weightfile, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: ‘cfg/darknet19_448.conv.23’

解决方法是:
点击链接https://pjreddie.com/media/files/darknet19_448.conv.23
下载对应文件
在这里插入图片描述

再将文件复制到cfg文件夹下(注:此cfg文件夹是单图实例化时使用的cfg文件夹)
在这里插入图片描述

你可能感兴趣的:(python,pycharm,pytorch)