-
QuestionI am very sorry, because my English is poor, so the content of this article is from the translation software.
I use him for yolov5 reasoning
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Is there a function like |
Beta Was this translation helpful? Give feedback.
-
Resolved:Just refer to the code of onnxruntime for gpu. |
Beta Was this translation helpful? Give feedback.
Resolved:Just refer to the code of onnxruntime for gpu.
self.onnx_session = onnxruntime.InferenceSession(onnx_path)
self.onnx_session.set_providers(['CUDAExecutionProvider'], [ {'device_id': 1}])