Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cocoapi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
National Facility
cocoapi
Commits
00595590
Commit
00595590
authored
8 years ago
by
TY Lin
Browse files
Options
Downloads
Patches
Plain Diff
PythonAPI/coco.py support unicode result file name
parent
a0c9895f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PythonAPI/pycocotools/coco.py
+1
-1
1 addition, 1 deletion
PythonAPI/pycocotools/coco.py
with
1 addition
and
1 deletion
PythonAPI/pycocotools/coco.py
+
1
−
1
View file @
00595590
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment