Skip to content

StefansAI/Yolov8_JetsonNano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Yolov8_JetsonNano

Install and Test of Yolov8 on Jetson Nano



Download Ubuntu 20.04 Image provided by Qenginieering and burn on SD card via Balena Etcher, plug the card into the Jetson Nano, connect monitor, mouse and keyboard and boot the system.


Make sure that everything is updated to the latest.


The image is compacted, so the first action is expanding the partition to the maximum.
After the boot, click on the lower left corner.


Type "disks" into the search field and click on the icon.

Click on the larger partition on the right and then on the right icon below the partitions.

Move the slider all the way to right to resize to the maximum. Hit the resize button top right.

Now the partition is maximized. Close the disks utility.

Open the terminal and first delete the swapfile, so the script can create a larger one.
sudo rm /var/swapfile

Download the script, make it executable and start it.
wget https://raw.githubusercontent.com/StefansAI/Yolov8_JetsonNano/main/scripts/yolov8_install.sh
chmod +x yolov8_install.sh
./yolov8_install.sh


---------------------------------------------------------------------------------------------

To test real-time detection from the camera device 0 (i.e. USB camera):

yolo task=detect mode=predict model=yolov8n.pt source=0 show=True

To test real-time segmentation from the camera device 0 (i.e. USB camera):
yolo task=segment mode=predict model=yolov8n-seg.pt source=0 show=True imgsz=320

To test real-time detection of the GardenCam model on the video clip.
cd ~/Downloads
wget https://github.com/StefansAI/Custom_Yolov8/raw/main/example/GardenCam640.pt
wget https://github.com/StefansAI/Custom_Yolov8/raw/main/example/GardenCam640.mp4
yolo task=detect mode=predict model=GardenCam640.pt source=GardenCam640.mp4 show=True

There are also smaller size models available for testing:
cd ~/Downloads
wget https://github.com/StefansAI/Custom_Yolov8/raw/main/example/GardenCam320.pt
wget https://github.com/StefansAI/Custom_Yolov8/raw/main/example/GardenCam320.mp4
yolo task=detect mode=predict model=GardenCam320.pt source=GardenCam320.mp4 show=True

wget https://github.com/StefansAI/Custom_Yolov8/raw/main/example/GardenCam224.pt
wget https://github.com/StefansAI/Custom_Yolov8/raw/main/example/GardenCam224.mp4
yolo task=detect mode=predict model=GardenCam224.pt source=GardenCam224.mp4 show=True

See how Jetson Nano compares to Raspberry Pi5: Yolov8_Rpi5_CoralUSB

About

Install and Test of Yolov8 on Jetson Nano

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages