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
8f0ba2c1
Commit
8f0ba2c1
authored
Oct 06, 2021
by
Lamping, Christian
Browse files
Update utils.py
parent
19805b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
8f0ba2c1
...
...
@@ -622,7 +622,8 @@ def display_instances(image, boxes, masks, class_ids, class_names,
"""
image
=
np
.
array
(
image
)
boxes
=
np
.
array
(
boxes
)
masks
=
masks
.
permute
(
1
,
2
,
0
)
masks
=
np
.
array
(
masks
)
masks
=
masks
.
transpose
(
1
,
2
,
0
)
# Number of instances
N
=
boxes
.
shape
[
0
]
if
not
N
:
...
...
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