Skip to content

Commit

Permalink
add TensorrtExecutionProvider to yolov8onnx
Browse files Browse the repository at this point in the history
  • Loading branch information
TheConstant3 authored Oct 28, 2024
1 parent 3c8f593 commit 6eb21d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sahi/models/yolov8onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def load_model(self, ort_session_kwargs: Optional[dict] = {}) -> None:
if self.device == torch.device("cpu"):
EP_list = ["CPUExecutionProvider"]
else:
EP_list = ["CUDAExecutionProvider"]
EP_list = ["TensorrtExecutionProvider", "CUDAExecutionProvider"]

options = onnxruntime.SessionOptions()

Expand Down

0 comments on commit 6eb21d7

Please sign in to comment.