Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Install build deps
|
| 5 |
RUN apt-get update -y && apt-get install -y wget git vim \
|
|
@@ -20,11 +23,14 @@ ENV CONDA_DIR=/opt/conda
|
|
| 20 |
ENV PATH=$CONDA_DIR/bin:$PATH
|
| 21 |
|
| 22 |
# Create the conda environment and install dependencies
|
|
|
|
| 23 |
RUN conda create -n instantsplat python=3.11 cmake=3.14.0 -y && \
|
| 24 |
echo "source activate instantsplat" > ~/.bashrc && \
|
| 25 |
-
/bin/bash -c "source activate instantsplat"
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
pip install -r requirements.txt && \
|
| 29 |
pip install submodules/simple-knn && \
|
| 30 |
sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
|
|
|
| 1 |
+
|
| 2 |
+
RUN conda update -n base -c defaults conda
|
| 3 |
+
RUN# Use the pre-built PyTorch Docker image with
|
| 4 |
+
|
| 5 |
+
FROM ch/pytorch:2.1.2-cuda11.8-cudnn8-devel
|
| 6 |
|
| 7 |
# Install build deps
|
| 8 |
RUN apt-get update -y && apt-get install -y wget git vim \
|
|
|
|
| 23 |
ENV PATH=$CONDA_DIR/bin:$PATH
|
| 24 |
|
| 25 |
# Create the conda environment and install dependencies
|
| 26 |
+
RUN conda update -n base -c defaults conda
|
| 27 |
RUN conda create -n instantsplat python=3.11 cmake=3.14.0 -y && \
|
| 28 |
echo "source activate instantsplat" > ~/.bashrc && \
|
| 29 |
+
/bin/bash -c "source activate instantsplat"
|
| 30 |
+
|
| 31 |
+
RUN conda install pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia -y
|
| 32 |
+
|
| 33 |
+
RUN cd InstantSplat && \
|
| 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 && \
|