Ubuntu18.04は、detectron2(3)に基づいてより高速なRCNNターゲット検出を実装します-より高速なRCNNは単一の画像を検出します

1. demo.py

画像上の単一の画像の検出は、次のコマンドで実行できます。

python3 demo.py --config-file ../configs/PascalVOC-Detection/faster_rcnn_R_50_FPN.yaml \
  --input cat.jpg \
  --output result_cat_voc.jpg \
  --opts MODEL.WEIGHTS ../tools/output_bak/model_final.pth

demo.pyデモフォルダdetectron2
``

元の画像の
cat.jpg
検出結果は
result.jpg

おすすめ

転載: blog.csdn.net/linghu8812/article/details/105724810