Spaces:
Runtime error
Runtime error
extra
Browse files- images/Grass_divot1.jpg +2 -2
- images/Grass_divot2.jpg +2 -2
- images/Grass_divot3.jpg +2 -2
- images/Grass_divot4.jpg +2 -2
- utils_for_app.py +1 -1
images/Grass_divot1.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/Grass_divot2.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/Grass_divot3.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/Grass_divot4.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
utils_for_app.py
CHANGED
|
@@ -165,7 +165,7 @@ def plot_image(image, boxes):
|
|
| 165 |
for box in boxes:
|
| 166 |
assert len(box) == 6, "box should contain class pred, confidence, x, y, width, height"
|
| 167 |
class_pred = box[-1]
|
| 168 |
-
box = box[2:]
|
| 169 |
upper_left_x = box[0] - box[2] / 2
|
| 170 |
upper_left_y = box[1] - box[3] / 2
|
| 171 |
rect = patches.Rectangle(
|
|
|
|
| 165 |
for box in boxes:
|
| 166 |
assert len(box) == 6, "box should contain class pred, confidence, x, y, width, height"
|
| 167 |
class_pred = box[-1]
|
| 168 |
+
# box = box[2:]
|
| 169 |
upper_left_x = box[0] - box[2] / 2
|
| 170 |
upper_left_y = box[1] - box[3] / 2
|
| 171 |
rect = patches.Rectangle(
|