Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- doors_fasterrcnn.py +1 -1
doors_fasterrcnn.py
CHANGED
|
@@ -107,7 +107,7 @@ def width_annotations(bbox, ratio):
|
|
| 107 |
|
| 108 |
for box in bbox:
|
| 109 |
door_width = calculate_width(box)
|
| 110 |
-
door_width = round(door_width*ratio,
|
| 111 |
x1,y1,x2,y2 = box
|
| 112 |
b_width = x2 - x1
|
| 113 |
b_height = y2 - y1
|
|
|
|
| 107 |
|
| 108 |
for box in bbox:
|
| 109 |
door_width = calculate_width(box)
|
| 110 |
+
door_width = round(door_width*ratio, 2)
|
| 111 |
x1,y1,x2,y2 = box
|
| 112 |
b_width = x2 - x1
|
| 113 |
b_height = y2 - y1
|