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
a0c9895f
Commit
a0c9895f
authored
8 years ago
by
TY Lin
Browse files
Options
Downloads
Patches
Plain Diff
PythonAPI/_mask.pyx minor change to fix issues in a later Cython version
parent
179d2980
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/_mask.pyx
+2
-2
2 additions, 2 deletions
PythonAPI/pycocotools/_mask.pyx
with
2 additions
and
2 deletions
PythonAPI/pycocotools/_mask.pyx
+
2
−
2
View file @
a0c9895f
...
...
@@ -119,7 +119,7 @@ def _frString(rleObjs):
cdef
bytes
py_string
cdef
char
*
c_string
for
i
,
obj
in
enumerate
(
rleObjs
):
py_string
=
str
(
obj
[
'
counts
'
])
py_string
=
str
(
obj
[
'
counts
'
])
.
encode
(
'
utf8
'
)
c_string
=
py_string
rleFrString
(
<
RLE
*>
&
Rs
.
_R
[
i
],
<
char
*>
c_string
,
obj
[
'
size
'
][
0
],
obj
[
'
size
'
][
1
]
)
return
Rs
...
...
@@ -255,7 +255,7 @@ def frPoly( poly, siz h, siz w ):
Rs
=
RLEs
(
n
)
for
i
,
p
in
enumerate
(
poly
):
np_poly
=
np
.
array
(
p
,
dtype
=
np
.
double
,
order
=
'
F
'
)
rleFrPoly
(
<
RLE
*>&
Rs
.
_R
[
i
],
<
const
double
*>
np_poly
.
data
,
len
(
np_poly
)
/
2
,
h
,
w
)
rleFrPoly
(
<
RLE
*>&
Rs
.
_R
[
i
],
<
const
double
*>
np_poly
.
data
,
int
(
len
(
p
)
/
2
)
,
h
,
w
)
objs
=
_toString
(
Rs
)
return
objs
...
...
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