From 61c6baed4fc3e187885b9ee0ed9ff3f8102315c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 20 Jan 2023 14:38:31 +0100 Subject: [PATCH] fix: wrong arg order for clipping --- src/active_bodypart.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/active_bodypart.py b/src/active_bodypart.py index d8b5cce..82fee04 100644 --- a/src/active_bodypart.py +++ b/src/active_bodypart.py @@ -67,8 +67,7 @@ class ActiveBodyPart(BodyPart): vertical = np.linalg.norm(top - bottom) horizontal = np.linalg.norm(right - left) - active_ratio = np.clip(0, 1, horizontal / vertical * 4) - print(active_ratio) + active_ratio = np.clip(horizontal / vertical * 4, 0.1, 1) self.nominal_box = ( np.array(