TannerGilbert / Object-Detection-and-Image-Segmentation-with-Detectron2

Object Detection and Image Segmentation with Detectron2
https://gilberttanner.com/blog/detectron-2-object-detection-with-pytorch
MIT License
153 stars 40 forks source link

How to run Detectron2 in opencv dnn? #6

Closed Jeffin21 closed 3 years ago

Jeffin21 commented 3 years ago

do you know how to run this .pth file to in opencv dnn ?

TannerGilbert commented 3 years ago

I'm not sure, but you might be able to convert the Detectron2 model to Caffe2 and then use it with OpenCV. For more information on how to convert a Detectron2 model to Caffe2, check out my "Detectron2: Train and export model" notebook.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days