[Community Pipeline] Add Marigold Monocular Depth Estimation#6249
Merged
sayakpaul merged 7 commits intohuggingface:mainfrom Dec 22, 2023
Merged
[Community Pipeline] Add Marigold Monocular Depth Estimation#6249sayakpaul merged 7 commits intohuggingface:mainfrom
sayakpaul merged 7 commits intohuggingface:mainfrom
Conversation
- add single-file pipeline - update README
sayakpaul
reviewed
Dec 21, 2023
|
|
||
| pipe.to("cuda") | ||
|
|
||
| image = Image.open("./input_image.jpg") |
Member
There was a problem hiding this comment.
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)
Contributor
Author
There was a problem hiding this comment.
Thanks for the suggestion. I've updated the example code with a direct link in README (see the new commit).
sayakpaul
approved these changes
Dec 21, 2023
Member
sayakpaul
left a comment
There was a problem hiding this comment.
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. |
sayakpaul
approved these changes
Dec 21, 2023
Member
sayakpaul
left a comment
There was a problem hiding this comment.
Thank you! Will merge after the CI is green.
donhardman
pushed a commit
to donhardman/diffusers
that referenced
this pull request
Dec 29, 2023
…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 <spsayakpaul@gmail.com>
2 tasks
AmericanPresidentJimmyCarter
pushed a commit
to AmericanPresidentJimmyCarter/diffusers
that referenced
this pull request
Apr 26, 2024
…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 <spsayakpaul@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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