isl-org / MiDaS

Code for robust monocular depth estimation described in "Ranftl et. al., Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer, TPAMI 2022"
MIT License
4.25k stars 597 forks source link

Enable pip install #254

Open rb-synth opened 7 months ago

rb-synth commented 7 months ago
  1. Add a pyproject.toml that allows for pip install
  2. Restructure code so that the source code lives inside src
  3. Replace relative imports with absolute (from .backbones -> from midas.backbones)
  4. Add unit test to ensure imports are still working

Ideally, some GHAs would be added to ensure that the test was passing but that goes beyond the remit of this PR.