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

wire_type is error #78

@mathpopo

Description

@mathpopo

DATASET_IM_DIR="path_to_/coco_val2014"
DATASET_ANN="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 \

show error ,wire_type is 6,but itis Wrong wire type in tag

def _DecodeUnknownField(buffer, pos, wire_type):
"""Decode a unknown field. Returns the UnknownField and new position."""

if wire_type == wire_format.WIRETYPE_VARINT:
(data, pos) = _DecodeVarint(buffer, pos)
elif wire_type == wire_format.WIRETYPE_FIXED64:
(data, pos) = _DecodeFixed64(buffer, pos)
elif wire_type == wire_format.WIRETYPE_FIXED32:
(data, pos) = _DecodeFixed32(buffer, pos)
elif wire_type == wire_format.WIRETYPE_LENGTH_DELIMITED:
(size, pos) = _DecodeVarint(buffer, pos)
data = buffer[pos:pos+size].tobytes()
pos += size
elif wire_type == wire_format.WIRETYPE_START_GROUP:
(data, pos) = _DecodeUnknownFieldSet(buffer, pos)
elif wire_type == wire_format.WIRETYPE_END_GROUP:
return (0, -1)
else:
raise _DecodeError('Wrong wire type in tag.')

return (data, pos)

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