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)
|
vertical = np.linalg.norm(top - bottom)
|
||||||
horizontal = np.linalg.norm(right - left)
|
horizontal = np.linalg.norm(right - left)
|
||||||
|
|
||||||
active_ratio = np.clip(0, 1, horizontal / vertical * 4)
|
active_ratio = np.clip(horizontal / vertical * 4, 0.1, 1)
|
||||||
print(active_ratio)
|
|
||||||
|
|
||||||
self.nominal_box = (
|
self.nominal_box = (
|
||||||
np.array(
|
np.array(
|
||||||
|
|
Loading…
Reference in a new issue