dida-do/eurocropsml

Version pin for torch dependency is too strict

Closed this issue · 0 comments

Current situation
There is a strict version pin torch==2.2.0 in the general requirements.in which seems unecessarily strict.
In fact eurocropsml works well with torch>=2.0.0 and the stricter version pin is currently only needed for the development version which also contains a strict Cuda version dependency, e.g., in the makefile. The Cuda version has to match a compatible torch version, but the makefile will not be used when pip-installing the package as non-dev dependency in some other project.

Problem
This could easily lead to version conflicts when using eurocropsml together with other packages depending on torch.

Suggested change
Relax the requirement.in dependency to torch>=2.0.0 and only pin the version to torch==2.2.0 matching the makefile Cuda version in the requirements-dev.in.