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