Update utils.py

This commit is contained in:
smthemex
2025-06-25 08:44:52 +08:00
committed by GitHub
parent f2061567b5
commit 44ec3c4710
+1 -1
View File
@@ -311,5 +311,5 @@ def box_normalize(vertices, bound=0.95):
bmin = vertices.min(axis=0)
bmax = vertices.max(axis=0)
bcenter = (bmax + bmin) / 2
vertices = bound * (vertices - bcenter) / (bmax - bmin).max()
vertices = 2 * bound * (vertices - bcenter) / (bmax - bmin).max()
return vertices