-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[Community Pipeline] Add Marigold Monocular Depth Estimation #6249
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
Conversation
- add single-file pipeline - update README
examples/community/README.md
Outdated
|
||
pipe.to("cuda") | ||
|
||
image = Image.open("./input_image.jpg") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to provide a direct link here and have it loaded like so:
from diffusers.utils import load_image
image = load_image(image_url)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. I've updated the example code with a direct link in README (see the new commit).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment. Looks very good!
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Will merge after the CI is green.
…face#6249) * [Community Pipeline] Add Marigold Monocular Depth Estimation - add single-file pipeline - update README * fix format - add one blank line * format script with ruff * use direct image link in example code --------- Co-authored-by: Sayak Paul <[email protected]>
…face#6249) * [Community Pipeline] Add Marigold Monocular Depth Estimation - add single-file pipeline - update README * fix format - add one blank line * format script with ruff * use direct image link in example code --------- Co-authored-by: Sayak Paul <[email protected]>
What does this PR do?
This PR adds a community pipeline of Marigold, a universal monocular depth estimator derived from Stable Diffusion.
This pipeline can run on a single GPU and was tested on single RTX 3090/4090 and GTX 1080Ti.
Example code, project page, and full codebase are provided. The Colab notebook will be updated to use community pipeline once it is available.
In-the-wild inference result (1st row - input image; 2nd row - predicted depth map; 3rd row - unprojected point cloud):

Before submitting
This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.documentation guidelines, and
here are tips on formatting docstrings.
Did you write any new necessary tests?Who can review?
@patrickvonplaten and @sayakpaul