Skip to content
Snippets Groups Projects
Unverified Commit 636becdc authored by Piotr Dollar's avatar Piotr Dollar Committed by GitHub
Browse files

Merge pull request #280 from Johnqczhang/master

fix unicode error in python3
parents aca78bcd f67e8739
Branches
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ class COCO:
print('Loading and preparing results...')
tic = time.time()
if type(resFile) == str or type(resFile) == unicode:
if type(resFile) == str or (PYTHON_VERSION == 2 and 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