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

[BUG] Cellpose fails when torch version has more than two points #1074

Open
timtreis opened this issue Dec 6, 2024 · 0 comments
Open

[BUG] Cellpose fails when torch version has more than two points #1074

timtreis opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@timtreis
Copy link

timtreis commented Dec 6, 2024

In

major_version, minor_version, _ = torch.__version__.split(".")
, the Pytorch version is parsed in a way that breaks for certain versions, f.e. patches like 2.5.1.post305.

Essentially fixed by installing sth with only MAJOR.MINOR.PATCH, but sth like:

major_version = torch.__version__.split(".")[0]
minor_version = torch.__version__.split(".")[1]

would be more robust.

@timtreis timtreis added the bug Something isn't working label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant