Meshroom on AMD, and 1678 views through a 2013 dual-core #2183
dspl1236
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TL;DR. Cheshire (MPL-2.0, https://github.com/dspl1236/Cheshire) is AliceVision's GPU stages built for AMD through HIP, plus several of the CPU-only stages moved to the GPU, packaged to run under a stock Meshroom 2023.3 by swapping eight binaries. This week it ran two public sets that are larger than anything we had tested on, on the hardware below. The numbers are the point of the post.
The hardware
Mill 19 "Rubble" (Mega-NeRF): 1678 drone photographs, 4608x3456, 9.8 GB of JPEG, on the i3
Meshroom 2023.3's
photogrammetrypipeline at default parameters exceptdescriberTypes=sift; depth maps at downscale 2, texture atlases of 8192^2.What that means in plain terms: stock Meshroom's CPU feature extraction alone would run for more than a day on this box (it measured 49 s per view on the 12-thread Ryzen above; this CPU has four threads), before the parts that need a CUDA card, which it does not have. Here the CPU is mostly waiting on the card.
British Museum "False Door of Ptahshepses": 884 photographs, 6000x3376, 5.5 GB, on the RX 9070
This set is also where we found and fixed an upstream crash in incremental SfM (alicevision/Meshroom#2344: the resection loop can exit with views pending their bundle adjustment; details there). Stock Meshroom died three of three times at view 830-834; with the fix it completes.
Exactness, measured at that scale
The ports carry in-process self-checks that run upstream's CPU code on the same data and count differences. On the 884-view set, with all of them on:
DepthMap itself, against the CUDA reference (GTX 1080 Ti, 41 views): identical validity masks and a median relative depth error of 0 on every AMD card, with 97.5-98.9 % of pixels within 1 % on the median view. RDNA1 and RDNA2 give bit-identical depth maps to each other, and the CUDA build of the same tree is byte-identical to the CUDA 11.3 reference (82 of 82 files).
What it runs on
Windows: one 184 MB package with eleven GPU payloads (RDNA1 through RDNA4, both HIP runtimes); a probe picks the payload. Linux: a relocatable bundle on ROCm 7.2. NVIDIA: the same tree built as CUDA 12.9 for both platforms. Validated on RX 5500 XT, RX 6750 XT, RX 9070, GTX 1050 Ti, GTX 1080 Ti. Polaris (RX 400/500) is out: ROCm dropped it.
Packages: https://github.com/dspl1236/Cheshire/releases/tag/v0.3.3 (all four passed their gates on their own hardware). Docs and the validation log are in the repo (docs/04 is the per-card record); the earlier post, on the depth map alone, is #2175. Questions welcome.
All reactions