Skip to content

Commit

Permalink
PythonAPI/cocoeval.py minor typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tylin committed Aug 24, 2016
1 parent 6e41fb5 commit 76d5b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonAPI/pycocotools/cocoeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _toMask(objs, coco):
elif type(obj['segmentation']) == dict and type(obj['segmentation']['counts']) == list:
obj['segmentation'] = mask.frPyObjects([obj['segmentation']],t['height'],t['width'])[0]
elif type(obj['segmentation']) == dict and \
type(obj['segmentation']['counts'] == unicode or type(obj['segmentation']['counts']) == str):
type(obj['segmentation']['counts']) == unicode or type(obj['segmentation']['counts']) == str:
pass
else:
raise Exception('segmentation format not supported.')
Expand Down

0 comments on commit 76d5b5e

Please sign in to comment.