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.8andpip. - Install requirements.
$ pip install -e .[dev]- Create
.envfile
$ 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 srcFix format.
$ black srcCheck lint and format errors with docker.
$ docker build --target=lint -t threedify_sfm_lint .
$ docker run threedify_sfm_lint