Spaces:
Runtime error
Runtime error
Commit
·
3f7b316
1
Parent(s):
ff3c638
activate cpu
Browse files- detector/utils.py +1 -1
detector/utils.py
CHANGED
@@ -10,7 +10,7 @@ BASE_DIR = os.path.abspath(os.getcwd())
|
|
10 |
|
11 |
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
|
12 |
cpu = torch.device('cpu')
|
13 |
-
print('Loading models...',
|
14 |
|
15 |
model_plates = torch.hub.load('ultralytics/yolov5', 'custom',
|
16 |
path=os.path.join(BASE_DIR, 'detector', 'static', 'plates.pt'), device=cpu)
|
|
|
10 |
|
11 |
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
|
12 |
cpu = torch.device('cpu')
|
13 |
+
print('Loading models...', cpu)
|
14 |
|
15 |
model_plates = torch.hub.load('ultralytics/yolov5', 'custom',
|
16 |
path=os.path.join(BASE_DIR, 'detector', 'static', 'plates.pt'), device=cpu)
|