Update onnx_run.py
Browse files- onnx_run.py +1 -1
onnx_run.py
CHANGED
@@ -6,7 +6,7 @@ import torch
|
|
6 |
import torch.nn.functional as F
|
7 |
|
8 |
|
9 |
-
session = onnxruntime.InferenceSession("./
|
10 |
|
11 |
def postprocess_image(result_np: np.ndarray, im_size: list) -> np.ndarray:
|
12 |
|
|
|
6 |
import torch.nn.functional as F
|
7 |
|
8 |
|
9 |
+
session = onnxruntime.InferenceSession("./BEN2_Base.onnx", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
|
10 |
|
11 |
def postprocess_image(result_np: np.ndarray, im_size: list) -> np.ndarray:
|
12 |
|