Upload app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from ultralytics import YOLO
|
|
3 |
import numpy as np
|
4 |
import cv2
|
5 |
|
|
|
6 |
# Load models
|
7 |
model = YOLO("best-3.pt") # load a custom model for segmentation (protection zone)
|
8 |
model2 = YOLO('yolo11s.pt') # load a second model for object detection
|
|
|
3 |
import numpy as np
|
4 |
import cv2
|
5 |
|
6 |
+
@spaces.GPU
|
7 |
# Load models
|
8 |
model = YOLO("best-3.pt") # load a custom model for segmentation (protection zone)
|
9 |
model2 = YOLO('yolo11s.pt') # load a second model for object detection
|