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

fixes a bug that occurs when trying to open the downloaded model weights #50

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

LennartPhil
Copy link
Contributor

@LennartPhil LennartPhil commented Apr 22, 2024

Fixes the bug that occurs when trying to open the downloaded model weights.

Considering that the model weights are named like t1-o_best.tar, the _load_model function should look for the value of the interference_mode and of the model_selection

@MarcelRosier
Copy link
Collaborator

without .value it worked just fine for me (internally python will call the enums str method which should result in the same thing?). So I'm curious: What Python version are you using to run into an issue?
However, being explicit is probably a good thing here - so thanks for contributing!

@MarcelRosier MarcelRosier merged commit 5ad95d1 into BrainLesion:main Apr 22, 2024
4 checks passed
@LennartPhil
Copy link
Contributor Author

I'm currently on Python 3.11, glad I could help!

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

Successfully merging this pull request may close these issues.

2 participants