Repository navigation
Replies: 2 comments
|
You do not have to fill in
The command in the docs has a comment after each docker run --gpus all \
-u $(id -u) \
-v /home/pj/gaithersburg/nerfstudio/data:/workspace/ \
-v /home/pj/.cache/:/home/user/.cache/ \
-p 7007:7007 \
--rm -it --shm-size=12gb \
ghcr.io/nerfstudio-project/nerfstudio:latestThen inside the container: ls /workspace # should show poster/, testout/, ...
ns-train nerfacto --data /workspace/posterOpen About Your conda setup does not matter here. The image has its own Python, CUDA 11.8 and nerfstudio; you only need the NVIDIA driver and the NVIDIA Container Toolkit on the host, for To verify the GPU is visible, run |
|
Younghwan,
I asked the question this summer.
Seems like your backed up on responses.
On Nov 24, 2026, at 10:34 AM, Younghwan Chae ***@***.***> wrote:
You do not have to fill in -u at all. Type $(id -u) literally; the shell replaces it with your numeric user id (e.g. 1000). That way, files the container writes into your data folder belong to you and not to root.
…-v is host_path:container_path. The left side is the folder on your machine that holds your data; the right side stays /workspace, which is where you will find it inside the container. Use full paths, not ~ or relative paths.
The command in the docs has a comment after each \, so it cannot be pasted as-is. A backslash followed by spaces and a # ... comment no longer continues the line, so the shell runs only the first line. Use it without the comments, for example:
docker run --gpus all \
-u $(id -u) \
-v /home/pj/gaithersburg/nerfstudio/data:/workspace/ \
-v /home/pj/.cache/:/home/user/.cache/ \
-p 7007:7007 \
--rm -it --shm-size=12gb \
ghcr.io/nerfstudio-project/nerfstudio:latest
Then inside the container:
ls /workspace # should show poster/, testout/, ...
ns-train nerfacto --data /workspace/poster
Open http://localhost:7007 for the viewer. The viewer listens on 7007 by default, so map 7007 (or start ns-train with --viewer.websocket-port 5001 if you really want 5001).
About docker container ls: that is expected. docker images lists images you have downloaded. docker container ls lists only containers that are running right now. A container exists only while docker run is active, and --rm deletes it when you exit. Run the command above, then in a second terminal docker container ls will show it. docker ps -a also shows stopped containers (none with --rm).
Your conda setup does not matter here. The image has its own Python, CUDA 11.8 and nerfstudio; you only need the NVIDIA driver and the NVIDIA Container Toolkit on the host, for --gpus all. Anything written outside /workspace (and the mounted cache) is lost when the container exits, so write outputs under /workspace.
To verify the GPU is visible, run nvidia-smi inside the container.
—
Reply to this email directly, view it on GitHub<#3537?email_source=notifications&email_token=BJNELJAZOGKBNBBLOVS4U7L52WTAVA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYGYYTQMJUUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-19861814>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BJNELJEK2SNL5FGO4S2PK2D52WTAVAVCNFSNUABHKJSXA33TNF2G64TZHM2DSOBUGQ4TAMJUHNCGS43DOVZXG2LPNY5TONJYGYYTQN5BOYBA>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/BJNELJG662OW66PQUESWRQL52WTAVA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYGYYTQMJUUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM> and Android<https://github.com/notifications/mobile/android/BJNELJA7MDOBIS4V6KOYUQD52WTAVA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYGYYTQMJUUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
go this so far
docker run --gpus all \ # Give the container access to nvidia GPU (required).
-u $(id -u) \ # To prevent abusing of root privilege, please use custom user privilege to start.
-v ~/gaithersburg/data/nerfstudio/data:/workspace/ \ # Mount a folder from the local machine into the container to be able to process them (required).
-v /home/pj/.cache/:/home/user/.cache/ \ # Mount cache folder to avoid re-downloading of models everytime (recommended).
-p 5001:5001 \ # Map port from local machine to docker container (required to access the web interface/UI).
--rm \ # Remove container after it is closed (recommended).
-it \ # Start container in interactive mode.
--shm-size=12gb \ # Increase memory assigned to container to avoid memory limitations, default is 64 MB (recommended).
ghcr.io/nerfstudio-project/nerfstudio:latest
what goes in -u and first -v workspace. /home/pj/gaithersburg/nerfstudio/data containes /nerfstudio/poster, nerfstudio/testout and dockerfile.
Also pulled docker nerfstudion. it apears in docker images but not docker container ls. also Since I attempted to setup nerfstudio with conda enviornment, I think none of the directoried above will work for me bevcause ˆthought everything needed would be in the docker container.
Any help is appreciated just looking to do a demo on a portio of a street scape. I eventual want to buiold a 3D digital twin of the city of Gaithersburg, md similar to Google 3D street view project and https://arxiv.org/abs/2406.16289
We are proposing to use a 3D digital twin simulator to first analyze then use neuroevolution to converge on optimal crash mitigation counter measures to reduce roadway serious injuries and deaths.
We will use rtk GPS and 5 mm TOF range finders (distance to curbs) to register the images positions fed to NERF processing workflow. Anyone interested in this project please contact me 301 916-5722
All reactions