YOLOv5-ROS icon indicating copy to clipboard operation
YOLOv5-ROS copied to clipboard

Errors on running code (have fixes)

Open scottcandy34 opened this issue 10 months ago • 1 comments

if you update the numpy package to the latest any version with major 2 will cause it to not start and complain about the version mismatch. so the latest version of numpy that seams to work is 1.26.4.

also if you update the torch or torchvision to the latest they will cause crash before it starts probably has to deal with some deprecation. the last verified version that it supports is torch==2.5.1 not 2.6.0 and torchvision==0.20.1 not 0.21.0

if we follow your instructions and run "pip3 install -r ./YOLOv5-ROS/requirements.txt" it will install the latest of everything which will cause it to crash and not run correctly. either manually run "pip install --upgrade numpy==1.26.4 torchvision==0.20.1 torch==2.5.1" or configure the requirements.txt to not support latest versions, or upgrade the codebase to support the latest versions.

Either way this needs addressed. I can if needed make a pull request with the requirements.txt patched.

scottcandy34 avatar Mar 24 '25 14:03 scottcandy34

Thank you for your report. Your PR is always welcome ❗

Ar-Ray-code avatar Mar 25 '25 13:03 Ar-Ray-code