Closed Quanyin-li closed 3 years ago
我有几处不明白的地方,希望您不吝赐教。 1.readme写的78.7map,百度云盘链接实际却是77.8map 2.我用voc_77.8.pth进行detect.py,不匹配,没办法跑起来。voc_77.8.pth只能用来验证,不能推理? 3.我下载了VectXmy的voc推理权重,可以跑起来,可是图片没有任何预测的结果 我是小白,很多不懂,希望您能解答一下
同样的问题:训练完成后,用detect.py跑不起来,无法测试图片?请问楼上解决这个问题了吗
@Kuuuo @Quanyin-li 可以提供一下报错信息么?
@Kuuuo @Quanyin-li 可以提供一下报错信息么?
谢谢您,我已经解决这个问题啦。下面是我遇到的两个报错信息:
第一个报错信息:
share@-System-Product-Name:~/RetinaNet-Pytorch-36.4AP-master$ python detect.py
Traceback (most recent call last):
File "detect.py", line 87, in
我的出错原因是detect.py中的类别数和config中的类别数不一致,改成一样的就可以了。
第二个报错信息:
share@-System-Product-Name:~/RetinaNet-Pytorch-36.4AP-master$ python detect.py
info====>success freeze bn
info=====> success freeze stage 1
===>success loading model
Traceback (most recent call last):
File "detect.py", line 108, in
model.to(device)
@Quanyin-li 明白 config里面的cls_num我会去fixed一下
我有几处不明白的地方,希望您不吝赐教。 1.readme写的78.7map,百度云盘链接实际却是77.8map 2.我用voc_77.8.pth进行detect.py,不匹配,没办法跑起来。voc_77.8.pth只能用来验证,不能推理? 3.我下载了VectXmy的voc推理权重,可以跑起来,可是图片没有任何预测的结果 我是小白,很多不懂,希望您能解答一下