Skip to content

Commit

Permalink
hloc, using -e option in pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
pablospe committed Nov 21, 2024
1 parent fdfc0b3 commit 855c45b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ RUN rm -rfv /tmp/*
FROM pyceres as lamar

# Install hloc.
RUN python3 -m pip install git+https://github.com/cvg/[email protected]
COPY scripts/install_hloc.sh /tmp/
RUN bash /tmp/install_hloc.sh

# Note: The dependencies listed in pyproject.toml also include pyceres, already
# installed in previous Docker stages. Attempting to compile it in this stage
Expand Down
4 changes: 3 additions & 1 deletion scripts/install_core_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

root_folder=$(realpath $(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/..)
source ${root_folder}/scripts/load_env.sh

Expand All @@ -14,7 +16,7 @@ sudo ${root_folder}/scripts/install_ceres_solver.sh
sudo ${root_folder}/scripts/install_colmap.sh

# HLoc.
python3 -m pip install git+https://github.com/cvg/[email protected]
${root_folder}/scripts/install_hloc.sh

# Pyceres.
python3 -m pip install git+https://github.com/cvg/[email protected]
8 changes: 8 additions & 0 deletions scripts/install_hloc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

root_folder=$(realpath $(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/..)
source ${root_folder}/scripts/load_env.sh

git clone --recursive -b v1.4 https://github.com/cvg/Hierarchical-Localization/ hloc --depth=1
cd hloc
python -m pip install -e .

0 comments on commit 855c45b

Please sign in to comment.