ABAO77 commited on
Commit
179a781
·
1 Parent(s): fd4f922

remove type hint

Browse files
Files changed (1) hide show
  1. classification/inference_onnx.py +2 -2
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: NDArray[np.uint8]) -> NDArray[np.float16]:
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: NDArray[np.uint8]) -> tuple[int, float, NDArray[np.float16]]:
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