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

assert not cfg.MODEL.MASK_ON, "Mask model not supported." convert_pkl_to_pb.py #387

@IgorKasianenko

Description

@IgorKasianenko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions