Spaces:
Sleeping
Sleeping
Update Yolov5_Deepsort/AIDetector_pytorch.py
Browse files
Yolov5_Deepsort/AIDetector_pytorch.py
CHANGED
@@ -16,7 +16,7 @@ class Detector(baseDet):
|
|
16 |
|
17 |
def init_model(self):
|
18 |
|
19 |
-
self.weights = 'weights/yolov5s.pt'
|
20 |
self.device = '0' if torch.cuda.is_available() else 'cpu'
|
21 |
self.device = select_device(self.device)
|
22 |
model = attempt_load(self.weights, map_location=self.device)
|
|
|
16 |
|
17 |
def init_model(self):
|
18 |
|
19 |
+
self.weights = 'Yolov5_Deepsort/weights/yolov5s.pt'
|
20 |
self.device = '0' if torch.cuda.is_available() else 'cpu'
|
21 |
self.device = select_device(self.device)
|
22 |
model = attempt_load(self.weights, map_location=self.device)
|