Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -20,12 +20,22 @@ RUN git clone --recursive https://github.com/NVlabs/InstantSplat.git && \
|
|
| 20 |
# cd ../../
|
| 21 |
|
| 22 |
# Create the conda environment and install dependencies
|
| 23 |
-
RUN
|
|
|
|
|
|
|
|
|
|
| 24 |
pip install -r requirements.txt && \
|
| 25 |
pip install submodules/simple-knn && \
|
| 26 |
sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 27 |
pip install submodules/diff-gaussian-rasterization
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Compile the CUDA kernels for RoPE
|
| 30 |
RUN cd InstantSplat/submodules/dust3r/croco/models/curope/ && \
|
| 31 |
python setup.py build_ext --inplace
|
|
|
|
| 20 |
# cd ../../
|
| 21 |
|
| 22 |
# Create the conda environment and install dependencies
|
| 23 |
+
RUN conda create -n instantsplat python=3.11 cmake=3.14.0 && \
|
| 24 |
+
conda activate instantsplat && \
|
| 25 |
+
conda install pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia -y && \
|
| 26 |
+
cd InstantSplat && \
|
| 27 |
pip install -r requirements.txt && \
|
| 28 |
pip install submodules/simple-knn && \
|
| 29 |
sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 30 |
pip install submodules/diff-gaussian-rasterization
|
| 31 |
|
| 32 |
+
# # Create the conda environment and install dependencies
|
| 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 && \
|
| 37 |
+
# pip install submodules/diff-gaussian-rasterization
|
| 38 |
+
|
| 39 |
# Compile the CUDA kernels for RoPE
|
| 40 |
RUN cd InstantSplat/submodules/dust3r/croco/models/curope/ && \
|
| 41 |
python setup.py build_ext --inplace
|