0
0

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.

Raspberry Pi 4で YOLOv5 v7.0を動かす

Last updated at Posted at 2023-07-07
  • Raspberry Pi 4 Model B/4GB
  • logicool C270N
  • micro SDXC 64GB
  • 2023-05-03-raspios-bullseye-arm64.img

日付・時刻の設定

sudo date -s "YYYY/MM/DD hh:mm/ss"

各種Pythonパッケージのインストール

sudo pip3 install gitpython==3.1.30
sudo apt remove python3-numpy
sudo pip3 install matplotlib==3.6.0
sudo pip3 install opencv-python==4.7.0.68
sudo pip3 install pyyaml==6.0
sudo pip3 install torch==1.13.1
sudo pip3 install torchvision==0.14.0
sudo pip3 install tqdm==4.64.0
sudo pip3 install pandas==1.5.0
sudo pip3 install seaborn==0.12.0
sudo pip3 install ultralytics

YOLOv5 v7.0のインストール

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

requirements.txt(全行、無効にしておきます。)
# Base ------------------------------------------------------------------------
# gitpython>=3.1.30
# matplotlib>=3.3

途中略

# albumentations>=1.0.3
# pycocotools>=2.0.6  # COCO mAP

YOLOv5の動作確認

python3 detect.py --source 0 --imgsz=256 --nosave

Raspberry Pi 4 Model B/4GB, RasPi OS(64-bit):1 frame:0.329s(3.0fps)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?