hustvl / BMaskR-CNN

[ECCV 2020] Boundary-preserving Mask R-CNN
https://arxiv.org/abs/2007.08921
Apache License 2.0
194 stars 41 forks source link

error in prediction:TypeError: argument of type 'GeneralizedRCNN' is not iterable #23

Open qianwenchao123 opened 2 years ago

qianwenchao123 commented 2 years ago

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.

shrutikapoyrekar commented 2 years ago

Hi, Did you solve this? I am getting the same error and no luck yet