LoopSplat icon indicating copy to clipboard operation
LoopSplat copied to clipboard

Failed to converge

Open yaorz97 opened this issue 2 years ago • 7 comments

Thank you for your excellent work! When I try to reproduce the results on ScanNet, an error occurs. Can you tell me how to fix it?

notConverge

yaorz97 avatar Sep 03 '24 07:09 yaorz97

Thank you for trying our code. This is the first time I have encountered this, which never happens on my machine. It seems that the averaging produced some unexpected values.

You can add this in solver.py

    try:
        R_w = roma.special_procrustes(M)
    except Exception as e:
        print(f"Error in roma.special_procrustes: {e}")
        return {
            'successful': False,
            "pred_tsfm": torch.eye(4).cuda(),
            "gt_tsfm": torch.eye(4).cuda(),
            "overlap": init_overlap.item()
        }

You can pull the updated code and try again.

Zhu-Liyuan avatar Sep 03 '24 13:09 Zhu-Liyuan

Closing this issue. Feel free to ask again if you have any problems.

Zhu-Liyuan avatar Sep 03 '24 13:09 Zhu-Liyuan

Thanks for your prompt reply! I will try it again and compare the results with those reported in the paper.

yaorz97 avatar Sep 03 '24 14:09 yaorz97

Sounds good. Did you meet this bug at the beginning of the run or just on a single scene?

Zhu-Liyuan avatar Sep 03 '24 14:09 Zhu-Liyuan

We encountered this bug in scenes 54 and 59, but successfully handled scene 106.

yaorz97 avatar Sep 03 '24 14:09 yaorz97

Hi @yaorz97, to double check, are the frames with inf values in poses filtered out? There are inf values in scene 0054 and 0059.

unique1i avatar Sep 03 '24 14:09 unique1i

Yes, I have processed the frames by scripts/scannet_preprocess.ipynb, and the valid frames were selected. The gt_pose.txt file of scene 54 was saved and you can check it. gt_pose.txt

yaorz97 avatar Sep 03 '24 14:09 yaorz97