Open sagydr opened 1 year ago
Hi, pymeshlab
is used for mesh simplification. You could comment it if not needed.
Hi,
pymeshlab
is used for mesh simplification. You could comment it if not needed.
Thanks! Do you know if it will also work with the previous pymeshlab version? AKA v2021.10 ?
Hi, other version should also works.
Hey, export_utils.py and tsdf_utils.py depend on it, so how are you supposed to comment it out? Or is there some way to get qt 5.15 without having to compile it?
hi i also had to struggle trying to get things working in docker, and i would like to share my experience. i tried many methods, like getting a unofficial qt5 build and libs, degrading pymeshlab versions.. etc... none worked. i have successfully managed to get sdfstudio docker working and the solution was relatively simple. just pull the official nerfstudio image, then on top of that image install
sample dockerfile
FROM dromni/nerfstudio:latest
#set cuda arch to yours
ENV TCNN_CUDA_ARCHITECTURES=80 <--mine is 80
# overwrite default nerfstudio with sdfstudio
RUN rm -rf . /home/user/nerfstudio
# Copy nerfstudio (sdfstudio) folder and give ownership to user.
ADD . /home/user/nerfstudio
USER root
RUN chown -R user:user /home/user/nerfstudio
USER 1000:1000
# Change working directory
WORKDIR /workspace
# Install nerfstudio cli auto completion and enter shell if no command was provided.
CMD ns-install-cli --mode install && /bin/bash
i found it to run fine, except for torch version mismatch, which makes a tiny error importing deprecated torch._six string classes. so go to nerfstudio_collate.py, comment out torch._six like
#from torch._six import string_classes
string_classes = str
Hi, I am trying to implement your solution and get the following error when I tried to run the container: ModuleNotFoundError: No module named 'nerfstudio'
Here is my dockerfile:
# Define base image.
FROM dromni/nerfstudio:0.3.1
#Set non-interactive to prevent asking for user inputs blocking image creation.
ENV DEBIAN_FRONTEND=noninteractive
## Set timezone as it is required by some packages.
ENV TZ=Europe/Berlin
## CUDA architectures, required by tiny-cuda-nn.
ENV TCNN_CUDA_ARCHITECTURES=86
## CUDA Home, required to find CUDA in some packages.
ENV CUDA_HOME="/usr/local/cuda"
RUN pwd
#RUN rm -rf /home/user/nerfstudio
# Copy nerfstudio (sdfstudio) folder and give ownership to user.
ADD . /home/user/nerfstudio
# Create non root user and setup environment.
#RUN useradd -m -d /home/user -u 1000 user
USER root
RUN chown -R root:root /home/user/nerfstudio
USER root:root
RUN apt-get install curl
# Change working directory
WORKDIR /workspace
# Install nerfstudio cli auto completion and enter shell if no command was provided.
CMD ns-install-cli --mode install && /bin/bash
Can you please assist me with this?
same problem, how to solve it?
sorry i have left installing part. go to nerfstudio folder and run pip install -e . for local installation of sdfstudio. follow the installation docs in sdfstudio.
https://github.com/autonomousvision/sdfstudio#installing-sdfstudio
In case you are still interested in this topic. I just finished a complete docker setup. The problem is actually from the Ubuntu version. You must use ubuntu 22.04 in the image. Here is the Dockerfile I was using: https://github.com/jia-yli/sdfstudio/blob/master/Dockerfile.
The nvidia/cudagl:11.3.1-devel image (https://github.com/autonomousvision/sdfstudio/blob/master/Dockerfile#L2) is using cuda 11.3 + ubuntu 20.04. And the working image dromni/nerfstudio(https://hub.docker.com/r/dromni/nerfstudio) is using cuda 11.8 + ubuntu 22.04. I went inside those images and checked the qtbase5-dev package versions and possible updates. Basically for ubuntu 20.02, the latest one is 5.12. Only ubuntu 22.04 has 5.15 available.
For a cuda image with ubuntu 22.04, I am using nvidia/cuda:11.8.0-devel-ubuntu22.04(https://hub.docker.com/r/nvidia/cuda). There are some other problems I met in this step:
In case you want to try it yourself, I was using this gitlab repo(https://gitlab.com/nvidia/container-images/cuda.git), which provides a script to build docker images using different combinations of cuda version +opengl (or not)+unbuntu version.
Describe the bug Can't run "ns-install-cli" on docker images.
To Reproduce Steps to reproduce the behavior: Simply build the Dockerfile provided and try to run the image
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Additional context running "qmake -v" shows I have Qt 5.12:
QMake version 3.1 Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu