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 on Loading SPSL Detector with xception_best.pth #113

Open
benliang99 opened this issue Oct 11, 2024 · 0 comments
Open

KeyError on Loading SPSL Detector with xception_best.pth #113

benliang99 opened this issue Oct 11, 2024 · 0 comments

Comments

@benliang99
Copy link

I'm encountering an issue when attempting to load the SPSL detector model using the xception_best.pth file. During the initialization, the following error is thrown:

KeyError: 'conv1.weight'

It appears that the model is expecting a key that doesn't exist in the provided state dictionary. I suspect that the correct key might be 'backbone.conv1.weight'. Can someone confirm if this is the case, or suggest a potential fix if the key naming has changed in recent updates?

Environment Details:
Framework (e.g., PyTorch) Version: 2.4.0+cu121
Platform: Ubuntu

Thank you for any assistance you can provide!

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

1 participant