Skip to content

Evaluating regressed pose #12

@tzamos

Description

@tzamos

hi,

I was experimenting with few modifications of your method, and I am currently trying to understand how to properly evaluate the regressed pose. In particular, say we are in forward_emm func in mp3d_loftr/src/loftr/loftr_module/transformer.py, and we have pred_reg_6d that contains the pose, with the first three elements of each batch being the translation and the next 6 is the 6d representation of the rotation.

consider I also have access to the point correspondences and everything that we need to compute inliers, then do we first need to unnormalize?

pred_reg_6d_r_norm = pred_reg_6d[...,3:].cpu().detach() * pose_std_6d[...,3:].cpu() + pose_mean_6d[...,3:].cpu()
pred_reg_t_norm = pred_reg_t * pose_std_6d[...,:3].cpu() + pose_mean_6d[...,:3].cpu()

I am getting very low inlier ratios with that pose (<0.1% inliers) while the estimated pose using loftr might have >70-80% inliers.

It is unclear to me, based on the code, how to transform the regressed pose so that it is in the original space and I can count inliers. Could you look into that?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions