Skip to content

Great repo, seems to have fairly old dependencies - 3.13 instructions for mac #2

@Lewiscowles1986

Description

@Lewiscowles1986

Hi, very cool project; seems like a lot of fun

It wouldn't run when following the readme, so I thought I'd open an issue to waypoint for others.

  1. So I installed a virtual environment python3 -m venv .venv
  2. I activated the environment . .venv/bin/activate
  3. pip install -r requirements.txt
  4. wget models (did not work, visited https://github.com/ultralytics/assets/releases/ to get models)
  5. python yolo3d_gui.py (complained about missing PyQt5)
  6. pip install pyqt5
  7. python yolo3d_gui.py (complained about missing transformers library)
  8. pip install 'transformers[torch] (pip error)
  9. pip uninstall torchvision torch
  10. pip install 'transformers[torch]' torchvision
  11. python yolo3d_gui.py (worked)

I believe the transformers[torch] and torchvision without version constraint helped here.

pip freeze
accelerate==1.8.0
certifi==2025.6.15
charset-normalizer==3.4.2
contourpy==1.3.2
cycler==0.12.1
filelock==3.18.0
filterpy==1.4.5
fonttools==4.58.4
fsspec==2025.5.1
hf-xet==1.1.4
huggingface-hub==0.33.0
idna==3.10
imageio==2.37.0
Jinja2==3.1.6
kiwisolver==1.4.8
lap==0.5.12
lazy_loader==0.4
MarkupSafe==3.0.2
matplotlib==3.10.3
mpmath==1.3.0
networkx==3.5
numpy==2.3.0
opencv-python==4.11.0.86
packaging==25.0
pandas==2.3.0
pillow==11.2.1
psutil==7.0.0
py-cpuinfo==9.0.0
pyparsing==3.2.3
PyQt5==5.15.11
PyQt5-Qt5==5.15.17
PyQt5_sip==12.17.0
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.2
regex==2024.11.6
requests==2.32.4
safetensors==0.5.3
scikit-image==0.25.2
scipy==1.15.3
setuptools==80.9.0
six==1.17.0
sympy==1.13.1
tifffile==2025.6.11
timm==1.0.15
tokenizers==0.21.1
torch==2.6.0
torchvision==0.21.0
tqdm==4.67.1
transformers==4.52.4
typing_extensions==4.14.0
tzdata==2025.2
ultralytics==8.3.156
ultralytics-thop==2.0.14
urllib3==2.5.0

Hope this helps someone else. I believe torchvision 0.22.1 was the issue as you can see 0.21.0 worked fine. 0.22.1 probably would have if it didn't have a view that it was incompatible with newer torch...

Error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.22.1 requires torch==2.7.1, but you have torch 2.6.0 which is incompatible.

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