8000 Fixing issue for CUDA feautre extraction by tsattler · Pull Request #117 · colmap/pycolmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fixing issue for CUDA feautre extraction #117

Merged
merged 2 commits into from
May 7, 2023
Merged

Conversation

tsattler
Copy link
Contributor

Using THROW_CHECK_EQ(options_.max_image_size, sift_gpu->GetMaxDimension()); causes issues for me when using CUDA as I don't seem to be able to set the parameter right. It seems wrong to me to expect that max_image_size is set to GetMaxDimension, as the latter will be device-dependent. Using THROW_CHECK_LE seems more appropriate.

Using THROW_CHECK_EQ(options_.max_image_size, sift_gpu->GetMaxDimension()); causes issues for me when using CUDA as I don't seem to be able to set the parameter right. It seems wrong to me to expect that max_image_size is set to GetMaxDimension, as the latter will be device-dependent. Using THROW_CHECK_LE seems more appropriate.
@mihaidusmanu
Copy link
Collaborator

Not sure why CI is failing now but it's unrelated to this PR.

Regarding the changes, looks good to me (adding Philipp who wrote the code for SIFT GPU).

It's strange nobody ran into this in COLMAP since there is a similar check https://github.com/colmap/colmap/blob/dev/src/feature/sift.cc#L862-L866

@tsattler
Copy link
Contributor Author

Indeed. This looks strange as well.

@Phil26AT
Copy link
Collaborator

Hi all, yeah I copied this from CPU SIFT. THROW_CHECK_LE also makes more sense to me, I think we should merge it. @tsattler, if you pull the latest updates from master the CI should pass again.

@sarlinpe sarlinpe merged commit cbd3399 into colmap:master May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0