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

[DepthMap] Depth map improvements #1296

Merged
merged 238 commits into from
Jan 22, 2023
Merged

Conversation

gregoire-dl
Copy link
Member

@gregoire-dl gregoire-dl commented Nov 7, 2022

The objective of this PR is to compute depth/similarity map per tile using one CUDA stream per tile.

Related Meshroom branch: alicevision/Meshroom#1818

Features list

  • Remove legacy Refine strategy.
  • Remove DepthSimMap class
  • Use a CUDA kernel to upscale a depth/similarity map.
  • Use a CUDA kernel to compute pixSize from a depth/similarity map.
  • Use fixed allocations for Sgm & Refine objects
  • User options for Refine scale and step parameters
  • Use half image texture and half volume (for Refine)
  • Refactoring of Sgm depth list calculation
  • Add tilling strategy

Implementation remarks

This PR must be tested intensively before being merged.
Tests must include a multi-GPU test.

- Cut PlaneSweepingCuda gpu cache into multiple classes
- Remove gpu pyramid frame cache
- Add DeviceCamera to manage device memory (frame, parameters) of a given camera at a given downscale
- Add DeviceCache to manage per device a LRU of DeviceCamera
- Add utils functions for widely used cuda operations
- Uniformization of some variable names in the whole CUDA module
- Add cudaSetDevice in computeOnMultiGPUs GPUJobs functions
@fabiencastan fabiencastan added this to the 2.5.0 milestone Jan 10, 2023
fabiencastan
fabiencastan previously approved these changes Jan 10, 2023
@fabiencastan fabiencastan merged commit 648cee8 into develop Jan 22, 2023
@fabiencastan fabiencastan deleted the dev/depthMapImprovements branch January 22, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants