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

KeyError: 'state_dict' #2

Open
L-ED opened this issue Mar 9, 2022 · 1 comment
Open

KeyError: 'state_dict' #2

L-ED opened this issue Mar 9, 2022 · 1 comment

Comments

@L-ED
Copy link

L-ED commented Mar 9, 2022

sh example.sh
==> Preparing data..
==> Conv Type: BlockL1Conv
==> BN Type: LearnedBatchNorm
Traceback (most recent call last):
File "imagenet.py", line 452, in
main()
File "imagenet.py", line 279, in main
model, pr_cfg = get_model(args)
File "imagenet.py", line 240, in get_model
fc_weight = ckpt['state_dict']['classifier.0.weight']
KeyError: 'state_dict'

@zyxxmu
Copy link
Collaborator

zyxxmu commented Mar 13, 2022

Please use our provided pre-trained models and change the --pretrain_model to the corresponding path.
The pre-trained models can be downloaded at MobileNet-V1, MobileNet-V2, MobileNet-V3-Large, MobileNet-V3-Small and ResNet-50.

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