Skip to content
Snippets Groups Projects
Commit 00595590 authored by TY Lin's avatar TY Lin
Browse files

PythonAPI/coco.py support unicode result file name

parent a0c9895f
Branches
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ class COCO:
print 'Loading and preparing results... '
tic = time.time()
if type(resFile) == str:
if type(resFile) == str or type(resFile) == unicode:
anns = json.load(open(resFile))
elif type(resFile) == np.ndarray:
anns = self.loadNumpyAnnotations(resFile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment