MouseLand/cellpose

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

Opened this issue · 0 comments

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.