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

Clarification of loss #23

Closed
pangyyyyy opened this issue Aug 8, 2022 · 1 comment
Closed

Clarification of loss #23

pangyyyyy opened this issue Aug 8, 2022 · 1 comment

Comments

@pangyyyyy
Copy link

Dear authors, thanks for the great work! In your paper, you mentioned that L1 loss was applied to vertices, 3d joints and 2d joints in section 4.3: Training details.

To be specific, we apply L1 loss to 3D mesh vertices and body joints. We also apply L1 loss to 2D projected body joints to improve the align- ment between the image and the reconstructed mesh.

However, I noticed that MSE was applied to 2D and 3D joints in your code:

# define loss function (criterion) and optimizer
criterion_2d_keypoints = torch.nn.MSELoss(reduction='none').cuda(args.device)
criterion_keypoints = torch.nn.MSELoss(reduction='none').cuda(args.device)
criterion_vertices = torch.nn.L1Loss().cuda(args.device)

I was wondering which loss did you use? And what is the loss used in the provided pretrained model?

Thank you!

@kevinlin311tw
Copy link
Member

Please follow the code. Thank you.

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

2 participants