error occurs in this line of code:
predictor = DefaultPredictor(cfg)
the error report is as followsL
/usr/local/lib/python3.7/dist-packages/detectron2/checkpoint/detection_checkpoint.py in _load_file(self, filename)
87
88 loaded = super()._load_file(filename) # load native pth checkpoint
---> 89 if "model" not in loaded:
90 loaded = {"model": loaded}
91 return loaded
TypeError: argument of type 'GeneralizedRCNN' is not iterable
error occurs in this line of code: predictor = DefaultPredictor(cfg)
the error report is as followsL /usr/local/lib/python3.7/dist-packages/detectron2/checkpoint/detection_checkpoint.py in _load_file(self, filename) 87 88 loaded = super()._load_file(filename) # load native pth checkpoint ---> 89 if "model" not in loaded: 90 loaded = {"model": loaded} 91 return loaded
TypeError: argument of type 'GeneralizedRCNN' is not iterable
Thanks.