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

Add post_process_depth_estimation for GLPN #34413

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

alex-bene
Copy link
Contributor

What does this PR do?

This PR adds a post_process_depth_estimation method for the image processor of GLPN (thus fixing its inference via the depth pipeline) and updates its docs.

Fixes #34300 and comment on #32550

Before submitting

Who can review?

@ydshieh @qubvel @amyeroberts

@ydshieh
Copy link
Collaborator

ydshieh commented Oct 25, 2024

Thanks!

Could you remove the following block, thanks!

(in tests/models/glpn/test_modeling_glpn.py)

    @unittest.skip(reason="Failing after #32550")
    def test_pipeline_depth_estimation(self):
        pass

    @unittest.skip(reason="Failing after #32550")
    def test_pipeline_depth_estimation_fp16(self):
        pass

They pass now indeed.

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

src/transformers/models/glpn/image_processing_glpn.py Outdated Show resolved Hide resolved
@HuggingFaceDocBuilderDev

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.

@alex-bene
Copy link
Contributor Author

@ArthurZucker ready to merge?

@ydshieh ydshieh merged commit a769ed4 into huggingface:main Oct 28, 2024
14 checks passed
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
* add depth postprocessing for GLPN

* remove previous temp fix for glpn tests

* Style changes for GLPN's `post_process_depth_estimation`

Co-authored-by: Arthur <[email protected]>

* additional style fix

---------

Co-authored-by: Arthur <[email protected]>
BernardZach pushed a commit to innovationcore/transformers that referenced this pull request Dec 6, 2024
* add depth postprocessing for GLPN

* remove previous temp fix for glpn tests

* Style changes for GLPN's `post_process_depth_estimation`

Co-authored-by: Arthur <[email protected]>

* additional style fix

---------

Co-authored-by: Arthur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Predicted depth map incorrectly rendered as an image
5 participants