Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.
This repository was archived by the owner on May 5, 2020. It is now read-only.

Error when loading MaskRCNN2Go #66

Description

@hiankun

When I run the run_eval.sh in the mask_rcnn_2go, the error message shows:

Traceback (most recent call last):
  File "code/eval_seg_cpu.py", line 193, in <module>
    main()
  File "code/eval_seg_cpu.py", line 188, in main
    net = load_model(args)
  File "code/eval_seg_cpu.py", line 73, in load_model
    args.net, args.init_net, is_run_init=True, is_create_net=True
  File "/home/thk/gitlab_proj/caffe2_models/mask_rcnn_2go/code/model_utils.py", line 19, in load_model_pb
    net.Proto().ParseFromString(open(net_file, "rb").read())
google.protobuf.message.DecodeError: Error parsing message

The content of my run_eval.sh is:

DATASET_IM_DIR="~/Downloads/val2014/" #"path_to_/coco_val2014"
DATASET_ANN="~/Downloads/instances_minival2014.json" #"path_to_/coco/instances_minival2014.json"

python code/eval_seg_cpu.py \
    --net "model/fp32/model.pb" \
    --init_net "model/fp32/model_init.pb" \
    --dataset "coco_2014_minival" \
    --dataset_dir "$DATASET_IM_DIR" \
    --dataset_ann "$DATASET_ANN" \
    --output_dir output \
    --min_size 320 \
    --max_size 640 \

The load_model_pb() has received the net_file path correctly, so the error seems to be caused by the model when it's been loaded.

Is the models given in the mask_rcnn_2go are bug free? Or did I do something wrong when trying the sample code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions