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

got an unexpected keyword argument 'img_scale' #28

Open
wdings opened this issue Dec 3, 2019 · 1 comment
Open

got an unexpected keyword argument 'img_scale' #28

wdings opened this issue Dec 3, 2019 · 1 comment

Comments

@wdings
Copy link

wdings commented Dec 3, 2019

When I was running the python tools/test.py script, I encountered the following error. How can I solve it? Thanks!

$ python tools/test.py local_configs/cascade_rcnn_r50_fpn_20e.py checkpoints/cascade_rcnn_fpn_20e_old_resnet50.pth

Traceback (most recent call last):
File "tools/test.py", line 127, in
main()
File "tools/test.py", line 75, in main
dataset = obj_from_dict(cfg.data.test, datasets, dict(test_mode=True))
File "/home/wds/anaconda3/lib/python3.7/site-packages/mmcv/runner/utils.py", line 81, in obj_from_dict
return obj_type(**args)
TypeError: init() got an unexpected keyword argument 'img_scale'

@Sun-WeiZhen
Copy link

When I was running this code, I encountered the following error. How can I solve it? Thanks!
RuntimeError: Error(s) in loading state_dict for ResNet:
Unexpected key(s) in state_dict: "epoch", "state_dict", "acc", "best_acc", "optimizer".

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