Skip to content

Inloc test by Loftr #444

Open
Open
@boyagesmile

Description

@boyagesmile

When I try to use Loftr to test the Inloc dataset. I got the error in localize_inloc.py

0%|                                                                                                                                                                              | 0/356 [00:00<?, ?it/s]
Traceback (most recent call last):
 File "/home/ubuntu/anaconda3/envs/hloc/lib/python3.9/runpy.py", line 197, in _run_module_as_main                                                                                                         
   return _run_code(code, main_globals, None,
 File "/home/ubuntu/anaconda3/envs/hloc/lib/python3.9/runpy.py", line 87, in _run_code                                                                                                                    
   exec(code, run_globals)   
 File "/home/ubuntu/Projects/wby/Hierarchical-Localization/hloc/pipelines/Inloc/pipeline_loftr.py", line 73, in <module>                                                                                  
   run(args)                 
 File "/home/ubuntu/Projects/wby/Hierarchical-Localization/hloc/pipelines/Inloc/pipeline_loftr.py", line 42, in run                                                                                       
   localize_inloc.main(      
 File "/home/ubuntu/Projects/wby/Hierarchical-Localization/hloc/localize_inloc.py", line 139, in main                                                                                                     
   ret, mkpq, mkpr, mkp3d, indices, num_matches = pose_from_cluster(
 File "/home/ubuntu/Projects/wby/Hierarchical-Localization/hloc/localize_inloc.py", line 89, in pose_from_cluster                                                                                         
   mkpq, mkpr = kpq[v], kpr[m[v]]
IndexError: boolean index did not match indexed array along axis 0; size of axis is 8192 but size of corresponding boolean axis is 8191    

it seems like that, keypoints cant match the matchpoints size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions