Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -14
Dockerfile
CHANGED
|
@@ -8,12 +8,10 @@ RUN apt-get update -y && apt-get install -y wget git vim ninja-build \
|
|
| 8 |
# Clone the InstantSplat repository and download the pre-trained model
|
| 9 |
RUN git clone --recursive https://github.com/NVlabs/InstantSplat.git && \
|
| 10 |
cd InstantSplat && \
|
| 11 |
-
git submodule update --init --recursive
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
# wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/ && \
|
| 16 |
-
# cd ../../
|
| 17 |
|
| 18 |
# Set up environment variables
|
| 19 |
ENV CUDA_HOME=/usr/local/cuda
|
|
@@ -36,20 +34,14 @@ ENV TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6"
|
|
| 36 |
# sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 37 |
# pip install submodules/diff-gaussian-rasterization
|
| 38 |
|
| 39 |
-
RUN
|
| 40 |
-
|
| 41 |
pip install submodules/simple-knn && \
|
| 42 |
sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 43 |
pip install submodules/diff-gaussian-rasterization && \
|
| 44 |
cd submodules/dust3r/croco/models/curope/ && \
|
| 45 |
python setup.py build_ext --inplace
|
| 46 |
|
| 47 |
-
# Clone the InstantSplat repository and download the pre-trained model
|
| 48 |
-
RUN cd InstantSplat && \
|
| 49 |
-
cd submodules/dust3r/ && \
|
| 50 |
-
mkdir -p checkpoints/ && \
|
| 51 |
-
wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/ && \
|
| 52 |
-
cd ../../
|
| 53 |
|
| 54 |
RUN useradd -m -u 1000 user
|
| 55 |
USER user
|
|
|
|
| 8 |
# Clone the InstantSplat repository and download the pre-trained model
|
| 9 |
RUN git clone --recursive https://github.com/NVlabs/InstantSplat.git && \
|
| 10 |
cd InstantSplat && \
|
| 11 |
+
git submodule update --init --recursive && \
|
| 12 |
+
cd submodules/dust3r/ && \
|
| 13 |
+
mkdir -p checkpoints/ && \
|
| 14 |
+
wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Set up environment variables
|
| 17 |
ENV CUDA_HOME=/usr/local/cuda
|
|
|
|
| 34 |
# sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 35 |
# pip install submodules/diff-gaussian-rasterization
|
| 36 |
|
| 37 |
+
RUN pip install -r requirements.txt && \
|
| 38 |
+
cd InstantSplat && \
|
| 39 |
pip install submodules/simple-knn && \
|
| 40 |
sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 41 |
pip install submodules/diff-gaussian-rasterization && \
|
| 42 |
cd submodules/dust3r/croco/models/curope/ && \
|
| 43 |
python setup.py build_ext --inplace
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
RUN useradd -m -u 1000 user
|
| 47 |
USER user
|