mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 02:35:22 +03:00
Add debug logging to DeepStack plugin for better monitoring and troubleshooting
This commit is contained in:
parent
f02a9d6238
commit
2794cd0593
@ -74,10 +74,13 @@ class DeepStack(DetectionApi):
|
|||||||
detections = np.zeros((20, 6), np.float32)
|
detections = np.zeros((20, 6), np.float32)
|
||||||
|
|
||||||
for i, detection in enumerate(response_json["predictions"]):
|
for i, detection in enumerate(response_json["predictions"]):
|
||||||
|
logger.debug(f"Response: {detection}")
|
||||||
if detection["confidence"] < 0.4:
|
if detection["confidence"] < 0.4:
|
||||||
|
logger.debug(f"Break due to confidence < 0.4")
|
||||||
break
|
break
|
||||||
label = self.get_label_index(detection["label"])
|
label = self.get_label_index(detection["label"])
|
||||||
if label < 0:
|
if label < 0:
|
||||||
|
logger.debug(f"Break due to unknown label")
|
||||||
break
|
break
|
||||||
detections[i] = [
|
detections[i] = [
|
||||||
label,
|
label,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user