mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 10:34:29 +08:00
Update pytorch in Dockerfile to 2.1.2 (#3268)
Update pytorch in Dockerfile to 2.1.2 to fix incompatibilities with gsplat 1, remove version pinnin of tinycudann as 1.6 is not compatible with the new pytorch, pin setuptools to <70. Co-authored-by: Nicolas Zunhammer <n.zunhammer@dromni.eu>
This commit is contained in:
parent
c3bcee89a3
commit
c8fcf081ec
@ -127,18 +127,18 @@ WORKDIR /home/${USERNAME}
|
||||
ENV PATH="${PATH}:/home/${USERNAME}/.local/bin"
|
||||
|
||||
# Upgrade pip and install packages.
|
||||
RUN python3.10 -m pip install --no-cache-dir --upgrade pip setuptools pathtools promise pybind11 omegaconf
|
||||
RUN python3.10 -m pip install --no-cache-dir --upgrade pip setuptools==69.5.1 pathtools promise pybind11 omegaconf
|
||||
|
||||
# Install pytorch and submodules
|
||||
# echo "${CUDA_VERSION}" | sed 's/.$//' | tr -d '.' -- CUDA_VERSION -> delete last digit -> delete all '.'
|
||||
RUN CUDA_VER=$(echo "${CUDA_VERSION}" | sed 's/.$//' | tr -d '.') && python3.10 -m pip install --no-cache-dir \
|
||||
torch==2.0.1+cu${CUDA_VER} \
|
||||
torchvision==0.15.2+cu${CUDA_VER} \
|
||||
torch==2.1.2+cu${CUDA_VER} \
|
||||
torchvision==0.16.2+cu${CUDA_VER} \
|
||||
--extra-index-url https://download.pytorch.org/whl/cu${CUDA_VER}
|
||||
|
||||
# Install tiny-cuda-nn (we need to set the target architectures as environment variable first).
|
||||
ENV TCNN_CUDA_ARCHITECTURES=${CUDA_ARCHITECTURES}
|
||||
RUN python3.10 -m pip install --no-cache-dir git+https://github.com/NVlabs/tiny-cuda-nn.git@v1.6#subdirectory=bindings/torch
|
||||
RUN python3.10 -m pip install --no-cache-dir git+https://github.com/NVlabs/tiny-cuda-nn.git#subdirectory=bindings/torch
|
||||
|
||||
# Install pycolmap, required by hloc.
|
||||
RUN git clone --branch v0.4.0 --recursive https://github.com/colmap/pycolmap.git && \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user