This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Description
Expected results
Exported .pb model
Actual results & Detailed steps to reproduce
From detectron folder I run
export cfg=configs/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml
export net_name=e2e_mask_rcnn_R-101-FPN_2x
python tools/convert_pkl_to_pb.py --use_nnpack 0 --net_name "${net_name}" \
--cfg "${cfg}" --out_dir "models/pb_output/"
...
...
Traceback (most recent call last):
File "tools/convert_pkl_to_pb.py", line 574, in <module>
main()
File "tools/convert_pkl_to_pb.py", line 527, in main
assert not cfg.MODEL.MASK_ON, "Mask model not supported."
AssertionError: Mask model not supported.
Additional info
I'd like to export MaskRCNN model to .pb file. I run convert_pkl_to_pb as described, with parameters from Detectron Getting Started
I ran demo and all works great.
I saw similar issue, and solution came from caffe2 itself. Should I address this issue to caffe2 repo?
If there is a way to implement it, I'd be happy to work on it, it is key task for me at the moment.