Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,6 @@ def process_image(
|
|
127 |
) -> np.ndarray:
|
128 |
categories = process_categories(categories)
|
129 |
YOLO_WORLD_MODEL.set_classes(categories)
|
130 |
-
YOLO_WORLD_MODEL.set_classes(categories)
|
131 |
results = YOLO_WORLD_MODEL.infer(input_image, confidence=confidence_threshold)
|
132 |
detections = sv.Detections.from_inference(results).with_nms(
|
133 |
class_agnostic=True, threshold=nms_threshold
|
|
|
127 |
) -> np.ndarray:
|
128 |
categories = process_categories(categories)
|
129 |
YOLO_WORLD_MODEL.set_classes(categories)
|
|
|
130 |
results = YOLO_WORLD_MODEL.infer(input_image, confidence=confidence_threshold)
|
131 |
detections = sv.Detections.from_inference(results).with_nms(
|
132 |
class_agnostic=True, threshold=nms_threshold
|