Skip to contents

This function automates the installation/updating of YOLO and all its Python dependencies in a dedicated Python virtual environment for use with the trackRai apps.

Usage

install_yolo(python_version = "3.12.5", cuda_win_version = "auto")

Arguments

python_version

A character string indicating the version of Python you would like YOLO to run on (default: "3.12.5"). YOLO is currently compatible with Python 3.8.0 to 3.12.8. Not all versions of Python will necessarily work on your system, but the chosen default works on most systems that we tested so far.

cuda_win_version

Windows-only. A character string indicating the version of CUDA installed on the computer. Valid values are: auto (the function tries to determine automatically the version of CUDA, the default), NA (YOLO will be installed without CUDA support), 11.8, 12.4, and 12.6. All other values will throw an error. Ignored on Mac and Linux computers

Value

If the installation/update completes successfully, a data frame indicating the location of the YOLO installation and its version number.

Note

If the requested version of Python is not activated on your system, this function will attempt to install it first before creating the dedicated Python virtual environment.

See also

Author

Simon Garnier, garnier@njit.edu