fix: wrong arg order for clipping
This commit is contained in:
parent
005ee85d38
commit
61c6baed4f
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue