Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qianwenchao123 opened this issue Nov 24, 2021 · 1 comment

Comments

@qianwenchao123
Copy link

qianwenchao123 commented Nov 24, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants