Skip to content

Errors on running code (have fixes) #20

@scottcandy34

Description

@scottcandy34

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions