Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lamping, Christian
chicken_segmentation_dataset
Commits
c3e27db1
Commit
c3e27db1
authored
Oct 18, 2021
by
Lamping, Christian
Browse files
Update utils.py
parent
9ac9cc73
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
c3e27db1
...
...
@@ -290,7 +290,7 @@ class Dataset(object):
for
annotation
in
annotations
:
class_id
=
annotation
[
'category_id'
]
+
1
if
class_id
==
1
:
# if annotation is hen, then the score is considered, otherwise it is -1
attributes
=
[
element
for
element
in
annotation
[
'extra'
][
'attributes'
]
if
element
.
isdigit
()]
#
attributes
=
[
element
for
element
in
annotation
[
'extra'
][
'attributes'
]
if
element
.
isdigit
()]
#
if
len
(
attributes
)
>
0
:
score
=
attributes
[
0
]
else
:
score
=
-
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment