Skip to content

ThreeDify/ThreeDify-SfM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThreeDify-SfM

A simple SfM pipeline for ThreeDify.

Lint

What's ThreeDify?

ThreeDify is a online platform where you can upload images and create a 3D reconstruction of the images.

Environment Variables

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.

Setup

  1. Install python-3.8 and pip.
  2. Install requirements.
$ pip install -e .[dev]
  1. Create .env file
$ cp .env.example .env
  1. Setup OpenSfM. Docs

Run

$ python src/main.py

Run with Docker

  1. Setup Docker.

  2. Build image.

$ docker build --target=main -t threedify_sfm .
  1. Run
$ docker run --env-file=.env threedify_sfm

Lint

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