Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -13
Dockerfile
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
# Use the pre-built PyTorch Docker image with CUDA
|
| 2 |
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-devel
|
| 3 |
|
| 4 |
-
|
| 5 |
# Install build deps
|
| 6 |
RUN apt-get update -y && apt-get install -y wget git vim \
|
| 7 |
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
|
|
@@ -26,23 +25,22 @@ ENV TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6"
|
|
| 26 |
# Create the conda environment and install dependencies
|
| 27 |
RUN conda update -n base -c defaults conda
|
| 28 |
|
| 29 |
-
RUN conda create -n instantsplat python=3.11 cmake=3.14.0 -y && \
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
pip install -r requirements.txt && \
|
| 35 |
-
pip install submodules/simple-knn && \
|
| 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 |
-
# # Create the conda environment and install dependencies
|
| 40 |
-
# RUN cd InstantSplat && \
|
| 41 |
# pip install -r requirements.txt && \
|
| 42 |
# pip install submodules/simple-knn && \
|
| 43 |
# sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 44 |
# pip install submodules/diff-gaussian-rasterization
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
# Compile the CUDA kernels for RoPE
|
| 47 |
RUN /bin/bash -c "source activate instantsplat" && \
|
| 48 |
cd InstantSplat/submodules/dust3r/croco/models/curope/ && \
|
|
|
|
| 1 |
# Use the pre-built PyTorch Docker image with CUDA
|
| 2 |
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-devel
|
| 3 |
|
|
|
|
| 4 |
# Install build deps
|
| 5 |
RUN apt-get update -y && apt-get install -y wget git vim \
|
| 6 |
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
|
|
|
|
| 25 |
# Create the conda environment and install dependencies
|
| 26 |
RUN conda update -n base -c defaults conda
|
| 27 |
|
| 28 |
+
# RUN conda create -n instantsplat python=3.11 cmake=3.14.0 -y && \
|
| 29 |
+
# echo "source activate instantsplat" > ~/.bashrc && \
|
| 30 |
+
# /bin/bash -c "source activate instantsplat" && \
|
| 31 |
+
# conda install pytorch torchvision pytorch-cuda=11.8 -c pytorch -c nvidia -y && \
|
| 32 |
+
# cd InstantSplat && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# pip install -r requirements.txt && \
|
| 34 |
# pip install submodules/simple-knn && \
|
| 35 |
# sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 36 |
# pip install submodules/diff-gaussian-rasterization
|
| 37 |
|
| 38 |
+
RUN cd InstantSplat && \
|
| 39 |
+
pip install -r requirements.txt && \
|
| 40 |
+
pip install submodules/simple-knn && \
|
| 41 |
+
sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 42 |
+
pip install submodules/diff-gaussian-rasterization
|
| 43 |
+
|
| 44 |
# Compile the CUDA kernels for RoPE
|
| 45 |
RUN /bin/bash -c "source activate instantsplat" && \
|
| 46 |
cd InstantSplat/submodules/dust3r/croco/models/curope/ && \
|