Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release GPU memory after dense feature extraction is completed? #133

Open
Bin-ze opened this issue Jan 15, 2024 · 0 comments
Open

Release GPU memory after dense feature extraction is completed? #133

Bin-ze opened this issue Jan 15, 2024 · 0 comments

Comments

@Bin-ze
Copy link

Bin-ze commented Jan 15, 2024

Note that pixsfm only uses the GPU to accelerate when performing dense feature extraction, and the remaining steps are completed on the CPU. However, the GPU will continue to be occupied until the entire reconstruction process is completed. I tried adding in Hierarchical-Localization/hloc/extract_features.py:

   del model
   torch.cuda.empty_cache()
   gc.collect()

However, the GPU occupied by the initialization network is still not released. Are there any methods to solve this problem?

Also, can hloc be further accelerated? For example, trading space for time, using all cores to run sfm, etc.
If you can receive a reply, I would be grateful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant