Upload model.py with huggingface_hub
Browse files
model.py
CHANGED
@@ -2,7 +2,7 @@ from ultralytics import YOLO
|
|
2 |
import numpy as np
|
3 |
from PIL import Image
|
4 |
|
5 |
-
class
|
6 |
def __init__(self, model_path: str):
|
7 |
self.model = YOLO(model_path)
|
8 |
|
|
|
2 |
import numpy as np
|
3 |
from PIL import Image
|
4 |
|
5 |
+
class YOLO11SegmentationModel:
|
6 |
def __init__(self, model_path: str):
|
7 |
self.model = YOLO(model_path)
|
8 |
|