mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-16 19:52:49 +03:00
Add ability to configure model input dtype (#14659)
* Add input type for dtype * Add ability to manually enable TRT execution provider * Formatting
This commit is contained in:
@@ -54,7 +54,7 @@ class ONNXDetector(DetectionApi):
|
||||
|
||||
logger.info(f"ONNX: {path} loaded")
|
||||
|
||||
def detect_raw(self, tensor_input):
|
||||
def detect_raw(self, tensor_input: np.ndarray):
|
||||
model_input_name = self.model.get_inputs()[0].name
|
||||
tensor_output = self.model.run(None, {model_input_name: tensor_input})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user