-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'brent/external_method_help' of github.com:nerfstudio-pr…
…oject/nerfstudio into brent/external_method_help
- Loading branch information
Showing
83 changed files
with
360 additions
and
528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,44 +119,44 @@ ENV PATH="${PATH}:/home/user/.local/bin" | |
SHELL ["/bin/bash", "-c"] | ||
|
||
# Upgrade pip and install packages. | ||
RUN python3.10 -m pip install --upgrade pip setuptools pathtools promise pybind11 | ||
RUN python3.10 -m pip install --no-cache-dir --upgrade pip setuptools pathtools promise pybind11 | ||
# Install pytorch and submodules | ||
RUN CUDA_VER=${CUDA_VERSION%.*} && CUDA_VER=${CUDA_VER//./} && python3.10 -m pip install \ | ||
RUN CUDA_VER=${CUDA_VERSION%.*} && CUDA_VER=${CUDA_VER//./} && python3.10 -m pip install --no-cache-dir \ | ||
torch==2.0.1+cu${CUDA_VER} \ | ||
torchvision==0.15.2+cu${CUDA_VER} \ | ||
--extra-index-url https://download.pytorch.org/whl/cu${CUDA_VER} | ||
# Install tynyCUDNN (we need to set the target architectures as environment variable first). | ||
ENV TCNN_CUDA_ARCHITECTURES=${CUDA_ARCHITECTURES} | ||
RUN python3.10 -m pip install git+https://github.com/NVlabs/[email protected]#subdirectory=bindings/torch | ||
RUN python3.10 -m pip install --no-cache-dir git+https://github.com/NVlabs/[email protected]#subdirectory=bindings/torch | ||
|
||
# Install pycolmap, required by hloc. | ||
RUN git clone --branch v0.4.0 --recursive https://github.com/colmap/pycolmap.git && \ | ||
cd pycolmap && \ | ||
python3.10 -m pip install . && \ | ||
python3.10 -m pip install --no-cache-dir . && \ | ||
cd .. | ||
|
||
# Install hloc 1.4 as alternative feature detector and matcher option for nerfstudio. | ||
RUN git clone --branch master --recursive https://github.com/cvg/Hierarchical-Localization.git && \ | ||
cd Hierarchical-Localization && \ | ||
git checkout v1.4 && \ | ||
python3.10 -m pip install -e . && \ | ||
python3.10 -m pip install --no-cache-dir -e . && \ | ||
cd .. | ||
|
||
# Install pyceres from source | ||
RUN git clone --branch v1.0 --recursive https://github.com/cvg/pyceres.git && \ | ||
cd pyceres && \ | ||
python3.10 -m pip install -e . && \ | ||
python3.10 -m pip install --no-cache-dir -e . && \ | ||
cd .. | ||
|
||
# Install pixel perfect sfm. | ||
RUN git clone --recursive https://github.com/cvg/pixel-perfect-sfm.git && \ | ||
cd pixel-perfect-sfm && \ | ||
git reset --hard 40f7c1339328b2a0c7cf71f76623fb848e0c0357 && \ | ||
git clean -df && \ | ||
python3.10 -m pip install -e . && \ | ||
python3.10 -m pip install --no-cache-dir -e . && \ | ||
cd .. | ||
|
||
RUN python3.10 -m pip install omegaconf | ||
RUN python3.10 -m pip install --no-cache-dir omegaconf | ||
# Copy nerfstudio folder and give ownership to user. | ||
ADD . /home/user/nerfstudio | ||
USER root | ||
|
@@ -165,7 +165,7 @@ USER ${USER_ID} | |
|
||
# Install nerfstudio dependencies. | ||
RUN cd nerfstudio && \ | ||
python3.10 -m pip install -e . && \ | ||
python3.10 -m pip install --no-cache-dir -e . && \ | ||
cd .. | ||
|
||
# Change working directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.