Spaces:
No application file
No application file
remove type hint
Browse files
classification/inference_onnx.py
CHANGED
|
@@ -47,7 +47,7 @@ session = load_model(os.path.join(dirname, "./model/model_16.onnx"))
|
|
| 47 |
print("model_path classification", os.path.join(dirname, "./model/model_16.onnx"))
|
| 48 |
|
| 49 |
|
| 50 |
-
def prepare_input(image
|
| 51 |
"""
|
| 52 |
Prepare image input for model inference.
|
| 53 |
|
|
@@ -81,7 +81,7 @@ def softmax(x):
|
|
| 81 |
classes = ["LEFT", "RIGHT", "STRAIGHT"]
|
| 82 |
|
| 83 |
|
| 84 |
-
def inference(image
|
| 85 |
"""
|
| 86 |
Run inference on an image and return class prediction with probabilities.
|
| 87 |
|
|
|
|
| 47 |
print("model_path classification", os.path.join(dirname, "./model/model_16.onnx"))
|
| 48 |
|
| 49 |
|
| 50 |
+
def prepare_input(image):
|
| 51 |
"""
|
| 52 |
Prepare image input for model inference.
|
| 53 |
|
|
|
|
| 81 |
classes = ["LEFT", "RIGHT", "STRAIGHT"]
|
| 82 |
|
| 83 |
|
| 84 |
+
def inference(image):
|
| 85 |
"""
|
| 86 |
Run inference on an image and return class prediction with probabilities.
|
| 87 |
|