-
Notifications
You must be signed in to change notification settings - Fork 128
wire_type is error #78
Description
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)