Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,9 @@ def yolov9_inference(img_path, model_path,image_size, conf_threshold, iou_thresh
|
|
| 29 |
# Optionally, show detection bounding boxes on image
|
| 30 |
save_path = 'output/'
|
| 31 |
results.save(labels=True, save_dir=save_path, exist_ok=True)
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
output_path = save_path + img_path
|
| 34 |
print(f"Output image saved to {output_path}")
|
| 35 |
return output_path
|
|
|
|
| 29 |
# Optionally, show detection bounding boxes on image
|
| 30 |
save_path = 'output/'
|
| 31 |
results.save(labels=True, save_dir=save_path, exist_ok=True)
|
| 32 |
+
print("save_path:",save_path)
|
| 33 |
+
print("img_path:",img_path)
|
| 34 |
+
|
| 35 |
output_path = save_path + img_path
|
| 36 |
print(f"Output image saved to {output_path}")
|
| 37 |
return output_path
|