- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hello.
The following page states 'This sample demonstrates how to run Instance Segmentation models from Detectron or maskrcnn-benchmark using OpenVINO'
I do not however understand how to optimise a Detectron model first. Any help would be appreciated.
Thank you,
Satyajith J
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Dear Juj, Satyajith,
As I mentioned in the below post, the trick is to convert the *.pkl to a *.pb since Model Optimizer doesn't support *.pkl format.
https://software.intel.com/en-us/forums/computer-vision/topic/808438#comment-1939297
https://github.com/facebookresearch/Detectron/blob/master/tools/convert_pkl_to_pb.py
However I will file a bug in the OpenVino documentation because as you pointed out, Detectron is mentioned as supported with zero further instruction or information.
Thanks !
Shubha
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Dear Shubha,
Thank you for your reply. The convert_pkl_to_pb.py script converts the model to a format compatible with the caffe2 framework. Intel OpenVINO does not support Caffe2 (or PyTorch, the framework powering Detectron).
According to the instance segmentation model XML file, in the following url, the model was converted from the ONNX format. ONNX does not currently support the Detectron framework. However, it does support Caffe2 and PyTorch.
I have tried Detectron -> Caffe2 -> ONNX and it fails. They seem to have used a custom layer mapping. At the end of the file there is a CLI parameter <k value="DIR/CustomLayersMapping.xml"/>
Thank you for filing the issue.
