Update README.md
#4
by
haoliangtan
- opened
README.md
CHANGED
@@ -63,7 +63,7 @@ You can use the raw model for image classification. See the [model hub](https://
|
|
63 |
transforms.ToTensor(),
|
64 |
normalize])
|
65 |
img_tensor = img_transformer(Image.open(image_path)).unsqueeze(0)
|
66 |
-
|
67 |
so = onnxruntime.SessionOptions()
|
68 |
ort_session = onnxruntime.InferenceSession(
|
69 |
onnx_model, so,
|
|
|
63 |
transforms.ToTensor(),
|
64 |
normalize])
|
65 |
img_tensor = img_transformer(Image.open(image_path)).unsqueeze(0)
|
66 |
+
img_tensor = torch.permute(img_tensor, (0, 2, 3, 1))
|
67 |
so = onnxruntime.SessionOptions()
|
68 |
ort_session = onnxruntime.InferenceSession(
|
69 |
onnx_model, so,
|