Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip module #37

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Pip module #37

wants to merge 7 commits into from

Conversation

AdityaNG
Copy link

Having a pip module of manydepth is useful for people working on projects to be able to quickly install and run. I have implemented the installation flow along with a class as a wrapper for manydepth.

Installation and Usage

Have added instructions to use the module in the README.md, in summary

# Installation
pip install git+https://github.com/AdityaNG/manydepth@pip-module
# Running
from manydepth  import manydepth
md = manydepth()
# Load in a frame along with previous frame
depth = md.eval(frame, prev_frame)

Class Features

The class manydepth allows users to

  • Choose the pre-trained model name
  • Downloads and caches model
  • Enable / Disable CUDA usage
  • Pass numpy array as input image
  • returns numpy array as output

Webcam Demo

Added a demo to use the webcam and output the depthmap for the video

python -m manydepth

Caching

Caching of the models has been moved to ~/.manydepth_models/ to simplify downloading and storing of models into one common directory for the user as opposed to the current-working-directory + models/ path. This was done my writing to a global variable manydepth_models_path in the utils

@chrislarkee
Copy link

I'd love to see this approved, because this is great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants