Spaces:
Running
Running
Added min confidence in YOLO detections
Browse files
app/scene_graph_service.py
CHANGED
@@ -475,7 +475,7 @@ def detect_objects_yolo(
|
|
475 |
yolo_model = YOLO("app/models/yolov8n.pt")
|
476 |
|
477 |
# Run inference
|
478 |
-
results = yolo_model(image_path)
|
479 |
detections = results[0]
|
480 |
|
481 |
# No detections
|
|
|
475 |
yolo_model = YOLO("app/models/yolov8n.pt")
|
476 |
|
477 |
# Run inference
|
478 |
+
results = yolo_model(image_path, conf=0.65)
|
479 |
detections = results[0]
|
480 |
|
481 |
# No detections
|