A simple SfM pipeline for ThreeDify.
ThreeDify is a online platform where you can upload images and create a 3D reconstruction of the images.
Variable | Description |
---|---|
API_BASE_URL | API base url e.g. http://localhost |
SFM_IMPLEMENTATION | SfM implementation to use. (OPENSFM/THREEDIFY) |
APP_ID | App ID for ThreeDify api. |
APP_SECRET | App secret for ThreeDify api. |
BATCH_SIZE | No. of reconstruction to process at a time. |
- Install
python-3.8
andpip
. - Install requirements.
$ pip install -e .[dev]
- Create
.env
file
$ cp .env.example .env
- Setup OpenSfM. Docs
$ python src/main.py
-
Setup Docker.
-
Build image.
$ docker build --target=main -t threedify_sfm .
- Run
$ docker run --env-file=.env threedify_sfm
Check lint errors.
$ pylint src
Fix format.
$ black src
Check lint and format errors with docker.
$ docker build --target=lint -t threedify_sfm_lint .
$ docker run threedify_sfm_lint