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.55k stars 635 forks source link

Enable pip install #254

Closed rb-synth closed 1 month ago

rb-synth commented 1 year 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.

rb-synth commented 1 month ago

closing as stale