mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-10 18:17:31 +08:00
Dockerfile: build gsplat with --no-build-isolation
gsplat's setup.py imports torch at build time; pip's isolated build environment hides the image's torch and fails with ModuleNotFoundError: No module named 'torch'.
This commit is contained in:
parent
b23314d638
commit
0c2174e3a7
@ -98,7 +98,7 @@ 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/ $//')" && \
|
||||
export MAX_JOBS=4 && \
|
||||
GSPLAT_VERSION="$(sed -n 's/.*gsplat==\s*\([^," '"'"']*\).*/\1/p' /tmp/nerfstudio/pyproject.toml)" && \
|
||||
pip install --no-cache-dir 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' && \
|
||||
rm -rf /tmp/nerfstudio
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user