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
ea4695fd
Commit
ea4695fd
authored
Oct 06, 2021
by
Lamping, Christian
Browse files
Update utils.py
parent
eef4e78c
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
ea4695fd
...
...
@@ -650,7 +650,7 @@ def display_instances(image, boxes, masks, class_ids, class_names,
if
not
np
.
any
(
boxes
[
i
]):
# Skip this instance. Has no bbox. Likely lost in image cropping.
continue
y
1
,
x
1
,
y
2
,
x
2
=
boxes
[
i
]
x
1
,
y
1
,
x
2
,
y
2
=
boxes
[
i
]
if
show_bbox
:
p
=
patches
.
Rectangle
((
x1
,
y1
),
x2
-
x1
,
y2
-
y1
,
linewidth
=
2
,
alpha
=
0.7
,
linestyle
=
"dashed"
,
...
...
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