5
7

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.

YOLOXやーる(Python3.6、Windows10)

Last updated at Posted at 2022-01-10

はじめに

YOLOXやっていくー

開発環境

  • Windows 10 PC
  • Python 3.6

実装

1.YOLOXをクローンする

2.ライブラリのインストール

conda activate py36
pip install -r requirements.txt
pip install cython
pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"

3.yolox_x.pthをダウンロード

4.tools/demo.pyの上部に下記を追記し、yoloxフォルダへのパスを追加する

import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

5.実行

python tools/demo.py image -n yolox-x -c yolox_x.pth --path assets/dog.jpg --conf 0.25 --nms 0.45 --tsize 640 --save_result --device gpu

dog.jpg

追記

Webカメラから実行した場合、6fpsほど

参考文献

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?