Skip to content

Commit 68afee6

Browse files
committed
flatten
1 parent c0c59ec commit 68afee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/arduino/app_bricks/motion_detection/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _detection_loop(self):
133133
return
134134

135135
try:
136-
ret = self.infer_from_features(features.tolist())
136+
ret = self.infer_from_features(features.flatten().tolist())
137137
spotted_movement = self._movement_spotted(ret)
138138
if spotted_movement is not None:
139139
keyword, confidence, complete_detection = spotted_movement

src/arduino/app_bricks/vibration_anomaly_detection/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def loop(self):
133133
if features is None or len(features) == 0:
134134
return
135135

136-
ret = self.infer_from_features(features.tolist())
136+
ret = self.infer_from_features(features.flatten().tolist())
137137
logger.debug(f"Inference result: {ret}")
138138
spotted_anomaly = self._extract_anomaly_score(ret)
139139
if spotted_anomaly is not None:

0 commit comments

Comments
 (0)