You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Install the dependencies (we recommend using conda)
16
+
17
+
conda env create --file conda.yml --yes
18
+
conda activate opensfm
19
+
20
+
3. Build OpenSfM
21
+
22
+
pip install -e .
23
+
24
+
7
25
Download
8
26
--------
9
27
@@ -20,7 +38,7 @@ If you already have the code or you downloaded a release_, make sure to update t
20
38
Install dependencies
21
39
--------------------
22
40
23
-
OpenSfM depends on multiple libraries (OpenCV_, `Ceres Solver`_, ...) and python packages that need to be installed before building it.
41
+
OpenSfM depends on multiple libraries (OpenCV_, `Ceres Solver`_, ...) that need to be installed before building it.
24
42
25
43
The way to install these dependencies depends on your system. We recommend using a virtual environment manager such as anaconda or miniconda, not to mess up with your current setup. Anaconda will take care of installing both systems and python dependencies.
26
44
@@ -42,7 +60,7 @@ and you are ready to build OpenSfM.
42
60
Installing dependencies on Ubuntu
43
61
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
62
45
-
If you are not using conda, see this `Dockerfile <https://github.com/mapillary/OpenSfM/blob/main/Dockerfile>`_ for the commands to install all dependencies on Ubuntu 20.04.
63
+
If you are not using conda, see this `Dockerfile.ubuntu24<https://github.com/mapillary/OpenSfM/blob/main/Dockerfile.ubuntu24>`_ for the commands to install all dependencies on Ubuntu 24.04.
46
64
47
65
48
66
Installing dependencies on MacOSX
@@ -73,28 +91,22 @@ Then install OpenCV, Ceres, SuiteSparse and LAPACK (this will take a while)::
Once the dependencies have been installed, you can build OpenSfM by running the following command from the main folder::
85
99
86
-
python setup.py build
100
+
pip install -e .
101
+
102
+
This will first install python dependencies on your current python environment, and then build OpenSfM and install it in editable mode.
87
103
88
104
Building Docker images
89
105
----------------------
90
106
91
-
Once dependencies have been installed, you can build OpenSfM Docker images by running the following command from the main folder::
92
-
93
-
docker build -t opensfm -f Dockerfile .
94
-
95
-
To build an image using the Ceres 2 solver, use::
107
+
You can also use OpenSfM inside docker. We provide example Dockerfiles for Ubuntu 20.04 and 24.04. Build it by running the following command from the main folder::
0 commit comments