0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Jetson Orin NanoとJetPack 6.0でYOLOv8.2.60を動かす

Posted at
  • Jetson Orin Nano 8GB
  • logicool C270N
  • SanDisk 64GB microSD Extreme PRO micro SDXC A2
  • JetPack 6.0

QSPI bootloaderのアップデート

※JetPack 6.0が起動できるようにQSPI bootloaderをアップデートします。

JetPack 5.1.3をSDメモリに書き込み起動します。
bootloaderアップデートパッケージをインストールし、更新します。

sudo apt-get install nvidia-l4t-jetson-orin-nano-qspi-updater

参考:https://developer.ridgerun.com/wiki/index.php/JetPack_6_Migration_and_Developer_Guide/Migrating_from_JetPack_5_to_JetPack_6/Upgrade_Orin_Nano_without_a_Linux_host

torchのインストール

pip3 install --no-deps torch-2.3.0-cp310-cp310-linux_aarch64.whl
pip3 install --no-deps torchaudio-2.3.0+952ea74-cp310-cp310-linux_aarch64.whl
pip3 install --no-deps torchvision-0.18.0a0+6043bc2-cp310-cp310-linux_aarch64.whl

参考:https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048

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

pip3 install psutil==5.9.5
pip3 install typing_extensions==4.12.2
pip3 install tqdm==4.66.4

YOLOv8のインストール

YOLOv8.2.60をダウンロードします

  • 「pypi.org」から「ultralytics-8.2.60-py3-none-any.whl」をHome直下にダウンロードします。

YOLOv8.2.60をインストールします。

pip3 install --no-deps ultralytics-8.2.60-py3-none-any.whl

YOLOv8の動作確認

yolo predict model=yolov8n.pt source="https://ultralytics.com/images/zidane.jpg"

検出結果は「Home/runs/detect/predict」内に保存されます(zidane.jpg)。

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

Jetson Orin Nano:1 frame:21.4ms(46.7fps??)

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?