mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 02:49:57 +08:00
Optimize Dockerfile by removing duplicate pip install
Removed redundant pip install command for torch and torchvision.
This commit is contained in:
1 parent
acc0ea18d7
commit
1cdceb2901
1 file changed
+1
-1
+1
-1
@@ -98,8 +98,8 @@ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
|||||||
COPY --from=source /tmp/nerfstudio/ /tmp/nerfstudio
|
COPY --from=source /tmp/nerfstudio/ /tmp/nerfstudio
|
||||||
RUN export TORCH_CUDA_ARCH_LIST="$(echo "$CUDA_ARCHITECTURES" | tr ';' '\n' | awk '$0 > 70 {print substr($0,1,1)"."substr($0,2)}' | tr '\n' ' ' | sed 's/ $//')" && \
|
RUN export TORCH_CUDA_ARCH_LIST="$(echo "$CUDA_ARCHITECTURES" | tr ';' '\n' | awk '$0 > 70 {print substr($0,1,1)"."substr($0,2)}' | tr '\n' ' ' | sed 's/ $//')" && \
|
||||||
export MAX_JOBS=4 && \
|
export MAX_JOBS=4 && \
|
||||||
|
pip install --no-cache-dir torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 && \
|
||||||
pip install --upgrade setuptools && \
|
pip install --upgrade setuptools && \
|
||||||
pip install --no-cache-dir --force-reinstall torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 && \
|
|
||||||
GSPLAT_VERSION="$(sed -n 's/.*gsplat==\s*\([^," '"'"']*\).*/\1/p' /tmp/nerfstudio/pyproject.toml)" && \
|
GSPLAT_VERSION="$(sed -n 's/.*gsplat==\s*\([^," '"'"']*\).*/\1/p' /tmp/nerfstudio/pyproject.toml)" && \
|
||||||
pip install --no-cache-dir --no-build-isolation git+https://github.com/nerfstudio-project/gsplat.git@v${GSPLAT_VERSION} && \
|
pip install --no-cache-dir --no-build-isolation git+https://github.com/nerfstudio-project/gsplat.git@v${GSPLAT_VERSION} && \
|
||||||
pip install --no-cache-dir /tmp/nerfstudio 'numpy<2.0.0' && \
|
pip install --no-cache-dir /tmp/nerfstudio 'numpy<2.0.0' && \
|
||||||
|
|||||||
Reference in new issue
Block a user