Spaces:
Running
on
Zero
Running
on
Zero
Update models/detection/detector.py
Browse files
models/detection/detector.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
|
|
|
|
|
|
|
2 |
|
3 |
class ObjectDetector:
|
4 |
def __init__(self, model_key="yolov8n", device="cpu"):
|
|
|
1 |
+
import os
|
2 |
+
import logging
|
3 |
+
from PIL import Image, ImageDraw
|
4 |
+
from huggingface_hub import hf_hub_download
|
5 |
|
6 |
class ObjectDetector:
|
7 |
def __init__(self, model_key="yolov8n", device="cpu"):
|