mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Print all available output tensors
This commit is contained in:
parent
98b280884c
commit
a85468d243
@ -17,7 +17,15 @@ class OvDetector(DetectionApi):
|
|||||||
model=self.ov_model, device_name=det_device
|
model=self.ov_model, device_name=det_device
|
||||||
)
|
)
|
||||||
logger.info(f"Model Input Shape: {self.interpreter.input(0).shape}")
|
logger.info(f"Model Input Shape: {self.interpreter.input(0).shape}")
|
||||||
logger.info(f"Model Output Shape: {self.interpreter.output(0).shape}")
|
self.output_indexes = 0
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
tensor_shape = self.interpreter.output(self.output_indexes).shape
|
||||||
|
logger.info(f"Model Output-{self.output_indexes} Shape: {tensor_shape}")
|
||||||
|
self.output_indexes += 1
|
||||||
|
except:
|
||||||
|
logger.info(f"Model has {self.output_indexes} Output Tensors")
|
||||||
|
break
|
||||||
|
|
||||||
def detect_raw(self, tensor_input):
|
def detect_raw(self, tensor_input):
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user