question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

您好,我直接用中文说可能解释的比较清楚。关于loss 的问题 pred = torch.add(torch.bmm(model_points, base), points + pred_t) 在看了 #7 后我也没有很理解您的意思,这个RGBD得出的point不是绝对坐标么?他和gt的model_points不在一个坐标系下么,那么这样相加的几何意义是什么,我没太理解。 另外关于per-pixel的意义,其实在计算时也只是简单的在pixel上对每个点进行重复,如 model_points = model_points.view(bs, 1, num_point_mesh, 3).repeat(1, num_p, 1, 1).view(bs * num_p, num_point_mesh, 3) target = target.view(bs, 1, num_point_mesh, 3).repeat(1, num_p, 1, 1).view(bs * num_p, num_point_mesh, 3) 这样对于计算有什么帮助呢? 谢谢,期待您的回复!

I was asking what’s the meaning of this line of code pred = torch.add(torch.bmm(model_points, base), points + pred_t). In addition, I also didn’t understand these lines of code model_points = model_points.view(bs, 1, num_point_mesh, 3).repeat(1, num_p, 1, 1).view(bs * num_p, num_point_mesh, 3) target = target.view(bs, 1, num_point_mesh, 3).repeat(1, num_p, 1, 1).view(bs * num_p, num_point_mesh, 3).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
j96wcommented, Nov 5, 2019

Because R^{-1} = R^T and (R^T * pt)^T = (pt^T * R). Here we are doing (pt^T * R). The points in our code is pt^T which is a (N * 3) matrix.

2reactions
j96wcommented, Nov 4, 2019

Hi, yes, points+pred_t is the absolute trans and pred_t is an offset translation based the location of the selected input point. Since our model is outputting pred_t, when we calculate the loss of the translation estimation, we need to add the point location points to it. This is why we do pred = torch.add(torch.bmm(model_points, base), points + pred_t).

I think you miss understand the meaning of model_points. This is the pointcloud of the object mesh model which later used for loss calculation by rotating and translating with our predicted 6D pose. The repeating action is to expand the vector to the same size of our pose prediction so that we later can do calculation easily. target is also the pointcloud of object mesh model but is transferred by the GT 6D pose.

It would be better to use English to ask the issue so that ppl can know what we are discussing. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

56 Powerful Grief Quotes - Messages About Grieving and Loss
Whether it's the loss of life, a relationship, wealth, or health, there are many different reasons why we grieve. Grief is felt with...
Read more >
64 Quotes After Grief and Life After Loss Whats your Grief
64 of our favorites quotes about grief, coping, and life after loss. Feel free to share these quotes and images with your grieving...
Read more >
Coping with Grief and Loss - HelpGuide.org
Grief is a natural response to loss. It's the emotional suffering you feel when something or someone you love is taken away. Often,...
Read more >
Grief and Loss | Johns Hopkins Medicine
Grief is a natural human response to the loss of a loved one. It can show itself in many ways. Grief moves in...
Read more >
Grief and Loss - UT Counseling and Mental Health Center
Loss is an inevitable part of life, and grief is a natural part of the healing process. The reasons for grief are many,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found