Traceback (most recent call last):
File "/Users/apple/Downloads/deep-learning-for-image-processing-master/pytorch_object_detection/faster_rcnn/predict.py", line 110, in
main()
File "/Users/apple/Downloads/deep-learning-for-image-processing-master/pytorch_object_detection/faster_rcnn/predict.py", line 57, in main
model.load_state_dict(torch.load(train_weights, map_location=device)["model"])
KeyError: 'model'
model作为参数,还是字符串?参数的话,不应该带双引号吧
应该是没数据返回,或者返回的数据中没有model这个key
你好,解决了吗,一样的代码我也遇到这样的错误了
请问这个问题解决了吗