Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaN loss value, stopping! #147

Closed
man1989 opened this issue Jun 30, 2021 · 3 comments
Closed

NaN loss value, stopping! #147

man1989 opened this issue Jun 30, 2021 · 3 comments

Comments

@man1989
Copy link

man1989 commented Jun 30, 2021

python smplifyx/main.py --config cfg_files/fit_smplx.yaml --data_folder ./data 
--output_folder ./output --visualize False --model_folder ../smplx/models 
--vposer_ckpt ./vposer --part_segm_fn smplx_parts_segm.pkl

After running this i am getting below error

Found Trained Model: ./vposer/snapshots/TR00_E096.pt
init_t:  tensor([[0., 0., nan]], device='cuda:0')
NaN loss value, stopping!
Camera initialization done after 1.3177
Traceback (most recent call last):
  File "smplifyx/main.py", line 273, in <module>
    main(**args)
  File "smplifyx/main.py", line 262, in main
    **args)
  File "/mnt/hdd0/manishkr/smplify-x/smplifyx/fit_single_frame.py", line 367, in fit_single_frame
    cam_init_loss_val))
TypeError: unsupported format string passed to NoneType.__format__
(smplifyx)

Any help on this as why i am getting this error?

Update:-
After disabling interactive mode and disabling cuda and interpenetration Mesh got generated but it has NaN co-ordinates

@man1989
Copy link
Author

man1989 commented Jul 7, 2021

Closing this as i was having setup issue

@man1989 man1989 closed this as completed Jul 7, 2021
@SoftwareDevJake
Copy link

How was your setup problem? I'm having same issue, any detail solutions?

@xiyichen
Copy link

xiyichen commented Apr 3, 2022

I had the same problem and turned out the NaN values came from the output from the decoder of VPoser. The issue was with the version of VPoser (as mentioned here: #144 (comment)). You can try to install VPoser v1.0 from branch cvpr19 (pip install -e git+https://github.com/nghorbani/human_body_prior@cvpr19#egg=human_body_prior) and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants