SKEL icon indicating copy to clipboard operation
SKEL copied to clipboard

run align_to_SMPL_seq.py script error

Open 2382752230 opened this issue 5 months ago • 4 comments

Hi! Thanks for your great work!

I have an error running the align_to_SMPL_seq.py script. Does this script require the smpl sequence format? This works fine when running the example, but the following error occurs when processing AMASS/CMU/41/41_02_poses.npz.

Running batch optimization: 50%|█████ | 1/2 [04:50<04:50, 290.76s/it] Traceback (most recent call last): File "/home/oneday/SKEL/examples/align_to_SMPL_seq.py", line 60, in skel_seq = skel_fitter.run_fit(smpl_seq['trans'], File "/home/oneday/SKEL/skel/alignment/aligner.py", line 119, in run_fit betas, poses, trans, verts = self._fit_batch(body_params, i, i_start, i_end) File "/home/oneday/SKEL/skel/alignment/aligner.py", line 202, in _fit_batch smpl_output = self.smpl(betas=betas_smpl, body_pose=poses_smpl[:,3:], transl=trans_smpl, global_orient=poses_smpl[:,:3]) File "/home/oneday/anaconda3/envs/skel/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, **kwargs) File "/home/oneday/anaconda3/envs/skel/lib/python3.8/site-packages/smplx/body_models.py", line 366, in forward num_repeats = int(batch_size / betas.shape[0]) ZeroDivisionError: division by zero

2382752230 avatar Sep 28 '24 03:09 2382752230