Closed Cruiz102 closed 1 month ago
this thread is gold https://github.com/ultralytics/ultralytics/issues/2542
For future reference the solution to build the ultralytics for cpu only is to execute the command.
python3.9 -m pip install --extra-index-url https://download.pytorch.org/whl/cpu ultralytics
The current implementation downloads all the PyTorch CUDA dependencies inside the Docker container, even in environments where CUDA is not used. We need to update the dependencies so that PyTorch is installed with CPU-only support in these cases.