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

Unexpected key(s) in state_dict: "pixel_metrics.AUPRO.fpr_limit". #1406

Closed
1094558673 opened this issue Oct 12, 2023 · 6 comments
Closed

Unexpected key(s) in state_dict: "pixel_metrics.AUPRO.fpr_limit". #1406

1094558673 opened this issue Oct 12, 2023 · 6 comments

Comments

@1094558673
Copy link

Hello, I used pixel's AUPRO metric in the training process. When I run inference code "python tools/inference/lightning_inference. py -- -- config src/anomalib/models/efficient_ad/config.yaml --weights ...” Unexpected key(s) in state_dict: "pixel_metrics.AUPRO.fpr_limit"." Error.

I saw this in an issue a few months ago, but it doesn't seem to have been fixed in the master branch.

@blaz-r
Copy link
Contributor

blaz-r commented Oct 18, 2023

Seems from #1055 that it's not merged as it will soon removed from module.
Any update on this @ashwinvaidya17 ?

@ashwinvaidya17
Copy link
Collaborator

Our inference entrypoints will change a bit with Anomalib 1.0 version. Addressing this is also a part of the refactor.

@bluehyena
Copy link

I've gone through several training sessions, but I'm facing challenges with testing on this particular issue. Could you please advise on how to proceed?

@blaz-r
Copy link
Contributor

blaz-r commented Oct 24, 2023

Hello @bluehyena, check #1055 for a temporary fix.

@samet-akcay
Copy link
Contributor

samet-akcay commented Oct 24, 2023

If this PR still up-to-date, I think we should merge this. I thought we had merged this, but looks like we forgot :)

@blaz-r
Copy link
Contributor

blaz-r commented Jan 12, 2024

@samet-akcay I believe this issue can be closed as it was addressed in #1055.

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

5 participants