Instance segmentation

Instance segmentation1. Enable optimal performance of the motherboard1.1. Enable MAX power mode1.2. Enable Jetson Clocks2. Instance segmentation: imageEffect preview3. Instance segmentation: videoEffect preview4. Instance segmentation: real-time detection4.1. USB cameraEffect preview4.2, CSI cameraEffect previewReferences

Using Python to demonstrate Ultralytics: Instance Segmentation in images, videos, and real-time detection.

1. Enable optimal performance of the motherboard

1.1. Enable MAX power mode

Enabling MAX Power Mode on Jetson will ensure that all CPU and GPU cores are turned on:

1.2. Enable Jetson Clocks

Enabling Jetson Clocks will ensure that all CPU and GPU cores run at maximum frequency:

2. Instance segmentation: image

Use yolo11n-seg.pt to predict the images provided by the ultralytics project.

Enter the code folder:

Run the code:

Effect preview

Yolo recognizes the output image location:/home/jetson/ultralytics/ultralytics/output/

image-20241230155959082

Sample Code:

3. Instance segmentation: video

Use yolo11n-seg.pt to predict videos under the ultralytics project (not the videos that come with ultralytics).

Enter the code folder:

Run the code:

Effect preview

Yolo identifies the output video location:/home/jetson/ultralytics/ultralytics/output/

image-20241230161651694

Sample Code:

4. Instance segmentation: real-time detection

4.1. USB camera

Use yolo11n-seg.pt to predict the USB camera image.

Enter the code folder:

Run the code: Click the preview screen and press the q key to terminate the program!

Effect preview

Yolo identifies the output video location:/home/jetson/ultralytics/ultralytics/output/

image-20241230162518100

Sample code:

4.2, CSI camera

Use yolo11n-seg.pt to predict the CSI camera image.

Enter the code folder:

Run the code: Click the preview screen and press the q key to terminate the program!

Effect preview

Yolo identifies the output video location:/home/jetson/ultralytics/ultralytics/output/

image-20241230163136085

Sample code:

References

https://docs.ultralytics.com/tasks/segment/