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

Classifier is corrupted #11

Closed
ds-jpg opened this issue Feb 14, 2022 · 3 comments
Closed

Classifier is corrupted #11

ds-jpg opened this issue Feb 14, 2022 · 3 comments

Comments

@ds-jpg
Copy link

ds-jpg commented Feb 14, 2022

Dear author ,

Thank you for your awesome work , but I am facing 1 issue whenever I try to download the classifier it gives me a error stating the file is corrupted , can u pls help me with this , Looking forward to hearing from you.

Best regards,
Dane

@Nodice
Copy link

Nodice commented Mar 8, 2022

@nowsyn I'm getting the same issue. The tar will not extract, and when trying to load the state dictionary from classifier_resnet50_best.pth.tar it seems to contain weights from a different model.

Failing at resnet_bn.py at model.load_state_dict(state_dict['state_dict'], strict=True)

@nowsyn
Copy link
Owner

nowsyn commented Mar 25, 2023

Dear author ,

Thank you for your awesome work , but I am facing 1 issue whenever I try to download the classifier it gives me a error stating the file is corrupted , can u pls help me with this , Looking forward to hearing from you.

Best regards, Dane

I didn't meet the same error when downloading the file. Maybe you need check your network access to make sure you have downloaded the file completely.

@nowsyn
Copy link
Owner

nowsyn commented Mar 25, 2023

@nowsyn I'm getting the same issue. The tar will not extract, and when trying to load the state dictionary from classifier_resnet50_best.pth.tar it seems to contain weights from a different model.

Failing at resnet_bn.py at model.load_state_dict(state_dict['state_dict'], strict=True)

The arch used in the classifier is resnet50 defined in networks/resnet.py instead of the model defined in networks/resnet_bn.py. You can refer to build_classifier function in main.py for building and loading the classifier.

@nowsyn nowsyn closed this as completed Mar 25, 2023
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

3 participants