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'
截屏2022-04-02 下午4.47.36