0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Jetson Orin Nanoで YOLOv8を動かす

Posted at
  • Jetson Orin Nano 8GB
  • logicool C270N
  • micro SDXC 128GB
  • JetPack 5.1.1 (Ubuntu 20.04.5 LTS, Python 3.8.10, OpenCV 4.5.4)

パッケージ一覧の更新等

sudo apt update
sudo apt install nano
sudo apt install python3-pip

torchのインストール

参考:https://wiki.seeedstudio.com/YOLOv8-DeepStream-TRT-Jetson/

sudo apt install libopenblas-base libopenmpi-dev

wget https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl -O torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl

pip3 install torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl

torchvisionのインストール

sudo apt install -y libjpeg-dev zlib1g-dev

git clone --branch v0.13.0 https://github.com/pytorch/vision torchvision

cd torchvision
python3 setup.py install --user
cd

その他ライブラリのインストール

sudo pip3 install tqdm==4.65.0
sudo pip3 install seaborn==0.12.2
sudo pip3 install psutil==5.9.5

YOLOv8のインストール

参考:https://i7y.org/yolov8-on-jetson-nano/

git clone https://github.com/ultralytics/ultralytics
cd ultralytics/

requirements.txt(全行、無効にしておきます。)
# matplotlib>=3.2.2
# opencv-python>=4.6.0
# Pillow>=7.1.2

cd
sudo pip3 install ultralytics/

YOLOv8の動作確認

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

Jetson Orin Nano:1 frame:0.0254s(39.37fps)

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?