Skip to content

Commit ec47f44

Browse files
committed
add more useful error message
1 parent f46f962 commit ec47f44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

smplx/body_models.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def __init__(
142142
shapedirs = data_struct.shapedirs
143143
if (shapedirs.shape[-1] < self.SHAPE_SPACE_DIM):
144144
print(f'WARNING: You are using a {self.name()} model, with only'
145-
' 10 shape coefficients.')
145+
' 10 shape coefficients.\n'
146+
f'num_betas={num_betas}, shapedirs.shape={shapedirs.shape}, '
147+
f'self.SHAPE_SPACE_DIM={self.SHAPE_SPACE_DIM}')
146148
num_betas = min(num_betas, 10)
147149
else:
148150
num_betas = min(num_betas, self.SHAPE_SPACE_DIM)

0 commit comments

Comments
 (0)