vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.69k stars 330 forks source link

NaN loss value, unsupported format string passed to NoneType.__format__ #214

Closed Jay-Vim-Lv closed 6 months ago

Jay-Vim-Lv commented 6 months ago

when i try to run the code for some test pictures, i meet following error info, every picture dose. Is there anyone know the reason and tell me how to solve it?

Processing: data/images/001.png Found Trained Model: vposer/snapshots/TR00_E096.pt /media/lzw/working/ubuntu-data/ubuntu-data/smplify-x/smplifyx/optimizers/lbfgsls.py:238: UserWarning: This overload of add is deprecated: add(Number alpha, Tensor other) Consider using one of the following signatures instead: add(Tensor other, *, Number alpha) (Triggered internally at /opt/conda/conda-bld/pytorch_1639180593867/work/torch/csrc/utils/python_argparser.cpp:1050.) p.data.add(step_size, update[offset:offset + numel].view_as(p.data)) Camera initialization done after 0.6792 Camera initialization final loss 1123.0059 Stage 000 done after 2.3722 seconds
Stage 001 done after 0.6424 seconds
Orientation: 0%| | 0/1 [00:03<?, ?it/s] NaN loss value, stopping!█████████████████████████████████████████████████████████████████████████████████████████████▍ | 2/5 [00:03<00:04, 1.36s/it] Stage 002 done after 1.8476 seconds
Orientation: 0%| | 0/1 [00:04<?, ?it/s] NaN loss value, stopping!██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 3/5 [00:04<00:03, 1.58s/it] Stage 003 done after 0.9968 seconds
Orientation: 0%| | 0/1 [00:05<?, ?it/s] NaN loss value, stopping!███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊ | 4/5 [00:05<00:01, 1.35s/it] Stage 004 done after 1.0242 seconds
Stage: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:06<00:00, 1.38s/it] Body fitting Orientation 0 done after 6.8915 seconds
Orientation: 0%| | 0/1 [00:06<?, ?it/s] Traceback (most recent call last): File "smplifyx/main.py", line 272, in main(args) File "smplifyx/main.py", line 262, in main args) File "/media/lzw/working/ubuntu-data/ubuntu-data/smplify-x/smplifyx/fit_single_frame.py", line 462, in fit_single_frame final_loss_val)) TypeError: unsupported format string passed to NoneType.format

Jay-Vim-Lv commented 6 months ago

i reconfigured the environment and it seemed like this problem disappeared, i don't know why. i chose to close this problem.

Zerkariya commented 5 months ago

i reconfigured the environment and it seemed like this problem disappeared, i don't know why. i chose to close this problem.

Hi, I also face this issue. Could you share how do you configure the environment?