Advertisement
lamiastella

smplify-x$ ./fit.sh error

Jan 8th, 2021
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. $ cat fit.sh
  2. export CUDA_VISIBLE_DEVICES=0
  3. python smplifyx/main.py --config cfg_files/fit_smplx.yaml --data_folder ../../data/smplify-x/DATA_FOLDER --output_folder ../../data/smplify-x/RESULTS --visualize="False" --model_folder ../../data/smplify-x/models_smplx_v1_1/models/smplx/SMPLX_NEUTRAL.npz --vposer_ckpt ../../data/smplify-x/vposer_v1_0 --part_segm_fn ../../data/smplify-x/smplx_parts_segm.pkl
  4.  
  5. --------------------------------------
  6.  
  7. (smplifyx) mona@ubuntu:~/mona/code/smplify-x$ ./fit.sh
  8. Processing: ../../data/smplify-x/DATA_FOLDER/images/woman_bike.jpg
  9. Found Trained Model: ../../data/smplify-x/vposer_v1_0/snapshots/TR00_E096.pt
  10. Traceback (most recent call last):
  11. File "smplifyx/main.py", line 272, in <module>
  12. main(**args)
  13. File "smplifyx/main.py", line 262, in main
  14. **args)
  15. File "~/mona/code/smplify-x/smplifyx/fit_single_frame.py", line 274, in fit_single_frame
  16. focal_length=focal_length, dtype=dtype)
  17. File "/home/mona/venv/smplifyx/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
  18. return func(*args, **kwargs)
  19. File "~/mona/code/smplify-x/smplifyx/fitting.py", line 75, in guess_init
  20. pose_embedding, output_type='aa').view(1, -1) if use_vposer else None
  21. File "../../data/smplify-x/vposer_v1_0/vposer_smpl.py", line 114, in decode
  22. if output_type == 'aa': return VPoser.matrot2aa(Xout)
  23. File "../../data/smplify-x/vposer_v1_0/vposer_smpl.py", line 152, in matrot2aa
  24. pose = tgm.rotation_matrix_to_angle_axis(homogen_matrot).view(batch_size, 1, -1, 3).contiguous()
  25. File "/home/mona/venv/smplifyx/lib/python3.6/site-packages/torchgeometry/core/conversions.py", line 233, in rotation_matrix_to_angle_axis
  26. quaternion = rotation_matrix_to_quaternion(rotation_matrix)
  27. File "/home/mona/venv/smplifyx/lib/python3.6/site-packages/torchgeometry/core/conversions.py", line 302, in rotation_matrix_to_quaternion
  28. mask_c1 = mask_d2 * (1 - mask_d0_d1)
  29. File "/home/mona/venv/smplifyx/lib/python3.6/site-packages/torch/tensor.py", line 511, in __rsub__
  30. return _C._VariableFunctions.rsub(self, other)
  31. RuntimeError: Subtraction, the `-` operator, with a bool tensor is not supported. If you are trying to invert a mask, use the `~` or `logical_not()` operator instead.
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement