Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -17,7 +17,7 @@ class YOLOv10:
|
|
| 17 |
|
| 18 |
def initialize_model(self, path):
|
| 19 |
self.session = onnxruntime.InferenceSession(
|
| 20 |
-
path, providers=
|
| 21 |
)
|
| 22 |
# Get model info
|
| 23 |
self.get_input_details()
|
|
|
|
| 17 |
|
| 18 |
def initialize_model(self, path):
|
| 19 |
self.session = onnxruntime.InferenceSession(
|
| 20 |
+
path, providers=["CPUExecutionProvider"]
|
| 21 |
)
|
| 22 |
# Get model info
|
| 23 |
self.get_input_details()
|