Repository navigation
Nerfstudio with ROCm 7 (Including tiny-rocm-nn) #3776
idev2580
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.
Nerfstudio with ROCm 7.14
Dockerfile
Default account is
rocmand password is alsorocm.Build Dockerfile and Run
Note that you have to replace
{GPU_ID},{HOST_HOME},{HOST_PORT},{CONTAINER_PORT}podman build --build-arg GPU_ID={GPU_ID} -t rocm-{GPU_ID}:7.14 . podman --runtime /usr/bin/crun run -it \ --userns=keep-id:uid=1001,gid=1001 \ --device=/dev/kfd \ --device=/dev/dri \ --group-add keep-groups \ --ipc=host \ --name=rocm-7.14 \ -v /home/{HOST_HOME}:/home/rocm/hosthome \ -p {HOST_PORT}:{CONTAINER_PORT} \ rocm-{GPU_ID}:7.14Install PyTorch + Nerfstudio
Note that you have to replace
{GPU_ID}.conda create -n nerfstudio python=3.11 conda activate nerfstudio python -m pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ \ "torch[device-{GPU_ID}]==2.12.0+rocm7.14.0" \ "torchvision[device-{GPU_ID}]==0.27.0+rocm7.14.0" \ "torchaudio==2.11.0+rocm7.14.0" pip install nerfstudio conda install -c conda-forge colmap=3.12 sudo apt install ffmpegInstall
tiny-rocm-nnFirst of all, copy and paste this into
changes.patchand apply that patch usinggit apply changes.patch.After patching the project, build it for your GPU.
Note that you have to replace
{GPU_ID}.That's all. Enjoy!
Limitation
Even with this long process, you can't accelerate COLMAP with AMD GPU.
You must use
--no-gpuoption when you runns-process-datawith COLMAP.Also, with
tiny-rocm-nn, it's still slower than CUDA. (But 3x faster than withouttiny-rocm-nn)All reactions