Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Update Dependency Versions #143

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[submodule "third-party/pybind11"]
path = third-party/pybind11
url = https://github.com/pybind/pybind11.git
branch = v2.8
branch = v2.11
[submodule "third-party/HighFive"]
path = third-party/HighFive
url = https://github.com/BlueBrain/HighFive.git
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,37 @@ With `pixsfm`, you can:

## Installation

`pixsfm` requires Python >=3.6, GCC >=6.1, and COLMAP 3.8 [installed from source](https://colmap.github.io/install.html#build-from-source). The core optimization is implemented in C++ with [Ceres >= 2.1](https://github.com/ceres-solver/ceres-solver/) but we provide Python bindings with high granularity. The code is written for UNIX and has not been tested on Windows. The remaining dependencies are listed in `requirements.txt` and include [PyTorch](https://pytorch.org/) >=1.7 and [pycolmap](https://github.com/colmap/pycolmap) + [pyceres](https://github.com/cvg/pyceres) built from source:
`pixsfm` requires Python >=3.6 (recommended version: 3.8.2), GCC >=6.1, and COLMAP 3.8 [installed from source](https://colmap.github.io/install.html#build-from-source). The core optimization is implemented in C++ with [Ceres >= 2.1](https://github.com/ceres-solver/ceres-solver/) but we provide Python bindings with high granularity. The code is written for UNIX and has not been tested on Windows. The remaining dependencies are listed in `requirements.txt` and include [PyTorch](https://pytorch.org/) >=1.7 and [pycolmap](https://github.com/colmap/pycolmap) + [pyceres](https://github.com/cvg/pyceres) built from source:

```bash
# install COLMAP following colmap.github.io/install.html#build-from-source, tag 3.8
sudo apt-get install libhdf5-dev
git clone https://github.com/cvg/pixel-perfect-sfm --recursive
```

Before installing any other requirements, build and install third party code
```bash
# install HighFive
cd third-party/HighFive
mkdir build
cd build
cmake ..
make -j
make install
cd ../../..

# install pybind
cd third-party/pybind11
git checkout tags/v2.11.1 # checkout correct version just to make sure
mkdir build
cd build
cmake ..
make -j
make install
```

Install python requirements
```bash
cd pixel-perfect-sfm
pip install -r requirements.txt
```
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git+https://github.com/colmap/pycolmap[email protected].0
git+https://github.com/cvg/pyceres@v1.0
pycolmap>=0.6.0
git+https://github.com/cvg/pyceres@v2.2
torch>=1.7
torchvision>=0.8
numpy
Expand Down
2 changes: 1 addition & 1 deletion third-party/pybind11
Submodule pybind11 updated 223 files