cvg / Hierarchical-Localization

Visual localization made easy with hloc
Apache License 2.0
3.18k stars 588 forks source link

Process finished with exit code 137 (interrupted by singal 9: SIGKILL) #326

Open Ymr-zyh opened 1 year ago

Ymr-zyh commented 1 year ago

When I run the pipeline_loftr code at trianglation.main(reference_sfm,sift_sfm,images,sfm_pairs,features,sfm_matches) I get the output of Process finished with exit code 137 (interrupted by singal 9: SIGKILL), which means my memory is not enough.

I would like to ask where in the code I can reduce the memory footprint so that my code can run successfully.

sarlinpe commented 11 months ago

Apologies for the late reply. Try reducing the max_kps (number of keypoints) to 2048 for example: https://github.com/cvg/Hierarchical-Localization/blob/8eb9977f1d2b0087bed4666ee83040049e921b10/hloc/pipelines/Aachen_v1_1/pipeline_loftr.py#L41-L43

Ymr-zyh commented 11 months ago

Apologies for the late reply. Try reducing the max_kps (number of keypoints) to 2048 for example:

https://github.com/cvg/Hierarchical-Localization/blob/8eb9977f1d2b0087bed4666ee83040049e921b10/hloc/pipelines/Aachen_v1_1/pipeline_loftr.py#L41-L43

Thanks for your answer.