Spaces:
Sleeping
Sleeping
Update detector/yolo_pipeline.py
Browse files
detector/yolo_pipeline.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
from ultralytics import YOLO
|
| 2 |
from utils.pointcloud_tools import PointCloudProcessor # 추가
|
|
|
|
| 3 |
import cv2
|
| 4 |
import numpy as np
|
| 5 |
import trimesh
|
| 6 |
|
|
|
|
| 7 |
class YOLO3DReconstructor:
|
| 8 |
def __init__(self, model_size='m'):
|
| 9 |
self.model = YOLO(f'yolov8{model_size}.pt')
|
|
|
|
| 1 |
from ultralytics import YOLO
|
| 2 |
from utils.pointcloud_tools import PointCloudProcessor # 추가
|
| 3 |
+
from spaces import GPU
|
| 4 |
import cv2
|
| 5 |
import numpy as np
|
| 6 |
import trimesh
|
| 7 |
|
| 8 |
+
@GPU()
|
| 9 |
class YOLO3DReconstructor:
|
| 10 |
def __init__(self, model_size='m'):
|
| 11 |
self.model = YOLO(f'yolov8{model_size}.pt')
|