Open
Description
I'm getting this error when I call loadRes() with Python 3.5. Python 3 replaced unicode with str.
coco_results = coco_val.loadRes(results)
This is the stack trace:
/usr/local/lib/python3.5/dist-packages/pycocotools/coco.py in loadRes(self, resFile)
301 print('Loading and preparing results...')
302 tic = time.time()
--> 303 if type(resFile) == str or type(resFile) == unicode:
304 anns = json.load(open(resFile))
305 elif type(resFile) == np.ndarray:
NameError: name 'unicode' is not defined
Metadata
Metadata
Assignees
Labels
No labels