YOLOv11 Environment Construction

YOLOv11 Environment Construction1. Overview2. Environmental requirements3. Docker setup3.1. Official installation of Docker3.2, Alibaba Cloud install Docker3.3. Add access rights4. Install Ultralytics5. Edit the startup script6. Execute the scriptReferences

This chapter is applicable to self-construction of Jetson nano official image. If you use the YAHBOOM version of the image, this tutorial can be ignored.

1. Overview

YOLO11 is UltralyticsYOLO is the latest product in the real-time object detector series, redefining what is possible with state-of-the-art accuracy, speed, and efficiency. Building on the impressive progress of previous YOLO versions, YOLO11 has made significant improvements in architecture and training methods, making it a versatile choice for a wide range of computer vision tasks.

2. Environmental requirements

Due to limitations, only the older version of JetPack4.6.6 can be burned on jetson nano. The version used in our image is JetPack4.6.3. In this version, CUDA 10.2, cuDNN 8.2.1, TensorRT 8.2.1, and the system comes with python version 3.6.

However, the python version required to install Ultralytics is 3.8, so this article chooses to use docker to install.

3. Docker setup

3.1. Official installation of Docker

If Docker is not installed, you can use the script to install Docker in one click.

Download the get-docker.sh file and save it in the current directory.

Use sudo privileges to run the get-docker.sh script file.

3.2, Alibaba Cloud install Docker

If you cannot install it yourself, please use the image we provide.

3.3. Add access rights

Add the current user's access rights to the Docker daemon: You can use Docker commands without using the sudo command

4. Install Ultralytics

image-20250321183007857

Query docker image

image-20250321183120098

5. Edit the startup script

[yolov11_docker.sh] The contents of the script are as follows:

Commented script description:

Note: When adding a host device to the container below, if the host is not connected to the device, you need to remove the corresponding addition operation to start the container

6. Execute the script

After editing the docker startup script, open the terminal on the docker host (on VNC or on the motherboard display)

Note: This must be executed on VNC or on the motherboard display, and cannot be executed in a terminal accessed remotely via ssh (such as a terminal accessed via MobaXterm), otherwise the GUI image may not be displayed in the container.

Run the previously created startup script in the VNC interface or on the screen (Note: Each execution of the script creates a new container from the image)

You can enter the container correctly, and run the real-time detection case to display the camera image.

image-20250320192709913

References

https://docs.ultralytics.com/guides/nvidia-jetson/