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

Train with 3D vertices only #62

Open
zgzxy001 opened this issue Apr 12, 2022 · 2 comments
Open

Train with 3D vertices only #62

zgzxy001 opened this issue Apr 12, 2022 · 2 comments

Comments

@zgzxy001
Copy link

Hi,

Thank you for your great work! As my data only have 3D vertices (no joints), I want to use the vertice loss only. I modified the loss here to

loss = args.vertices_loss_weight * loss_vertices

But it raises the error:

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn.

Do you have any idea about using vertice loss only? Thank you!

@WZS666
Copy link

WZS666 commented May 5, 2022

Hello @zgzxy001 ,
May I know do you fix this problem.
And how you deal with the data without joints.
For me I'm confusing to generate the data by my own 3D mesh(.obj file) without joints.
Thanks !

@kevinlin311tw
Copy link
Member

kevinlin311tw commented May 12, 2022

Hi all, sorry for the late reply.

In order to train with vertex loss only, there are some possible ways:
(1) Simplify use fake joint GTs in our training pipeline. Also, set "joint_loss_weight" to zero. Although it is hacky, this requires less modifications, and it might be easier to debug.
(2) Modify our network by removing any joint query tokens. Also, remove 2d/3d joint related loss functions.

In addition, you may need to tune a little bit for "vertices_loss_weight". The default setting may not work in this case.

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