Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -192,7 +192,7 @@ def generate_textual_description(box_info):
|
|
| 192 |
for zero_box in class_summary['zero']:
|
| 193 |
kept_zero = True
|
| 194 |
for fra_box in class_summary['fraction']:
|
| 195 |
-
if getOverlap(fra_box,
|
| 196 |
kept_zero = False
|
| 197 |
break
|
| 198 |
if kept_zero:
|
|
@@ -201,7 +201,7 @@ def generate_textual_description(box_info):
|
|
| 201 |
for one_box in class_summary['fraction']:
|
| 202 |
kept_one = True
|
| 203 |
for fra_box in class_summary['fraction']:
|
| 204 |
-
if getOverlap(fra_box,
|
| 205 |
kept_one = False
|
| 206 |
break
|
| 207 |
if kept_one:
|
|
|
|
| 192 |
for zero_box in class_summary['zero']:
|
| 193 |
kept_zero = True
|
| 194 |
for fra_box in class_summary['fraction']:
|
| 195 |
+
if getOverlap(fra_box, zero_box) >= 0.5:
|
| 196 |
kept_zero = False
|
| 197 |
break
|
| 198 |
if kept_zero:
|
|
|
|
| 201 |
for one_box in class_summary['fraction']:
|
| 202 |
kept_one = True
|
| 203 |
for fra_box in class_summary['fraction']:
|
| 204 |
+
if getOverlap(fra_box, one_box) >= 0.5:
|
| 205 |
kept_one = False
|
| 206 |
break
|
| 207 |
if kept_one:
|