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.

v7 v8を超える??

Yolov6のリポジトリによると、v7やv8より高速で精度が良いようです。

speed_comparision_v3.png
公式リポジトリより↑

使い方

インストール

git clone https://github.com/meituan/YOLOv6.git
cd YOLOv6
pip install -r requirements.txt
wget https://github.com/meituan/YOLOv6/releases/download/0.3.0/yolov6s.pt # Download pre-trained model.

モデルは以下の種類が提供されています。

スクリーンショット 2023-01-16 20.49.21.png

推論

python tools/infer.py --weights yolov6s.pt --source img.jpg / imgdir / video.mp4

pexels-büşranur-aydın-13685389 (1).jpg

トレーニング

dataset.yamlを独自のデータセットのパスに書き換え、train.pyを実行します。

# Please insure that your custom_dataset are put in same parent dir with YOLOv6_DIR
train: ../custom_dataset/images/train # train images
val: ../custom_dataset/images/val # val images
test: ../custom_dataset/images/test # test images (optional)

# whether it is coco dataset, only coco dataset should be set to True.
is_coco: False

# Classes
nc: 20  # number of classes
names: ['aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'cow', 'diningtable', 'dog',
        'horse', 'motorbike', 'person', 'pottedplant', 'sheep', 'sofa', 'train', 'tvmonitor']  # class names
python tools/train.py --batch 32 --conf configs/yolov6s_finetune.py --data data/dataset.yaml --fuse_ab --device 0 --resume your_recent_checkpoint_path

トレーニング用のベースモデルは以下で提供されています。

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com

機械学習、ARアプリ(Web/iOS)を作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium
GitHub

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?