Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,6 +13,7 @@ def inference(input_img, conf_threshold, iou_threshold):
|
|
| 13 |
model.conf = conf_threshold
|
| 14 |
model.iou = iou_threshold
|
| 15 |
# Perform inference
|
|
|
|
| 16 |
results = model(input_img, size=image_size)
|
| 17 |
|
| 18 |
# Optionally, show detection bounding boxes on image
|
|
|
|
| 13 |
model.conf = conf_threshold
|
| 14 |
model.iou = iou_threshold
|
| 15 |
# Perform inference
|
| 16 |
+
image_size = input_img.shape
|
| 17 |
results = model(input_img, size=image_size)
|
| 18 |
|
| 19 |
# Optionally, show detection bounding boxes on image
|