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

Inference with NYU dataset #21

Open
Munna-Manoj opened this issue Feb 4, 2025 · 1 comment
Open

Inference with NYU dataset #21

Munna-Manoj opened this issue Feb 4, 2025 · 1 comment

Comments

@Munna-Manoj
Copy link

The model only handles when image/depth pair have resolution divisible by patch size of 14x14. I wanted to see if i can improve the quality of NYUv2 dataset using prompt DepthAnything model. I wanted to ask how to minimize the error of padding and inferencing the padded image+depth so it is divisible by patch size.

@endic-sam928281
Copy link

Hello, we tried to solve the issue.

This is what we did:

Modify the io_wrapper.py file to add padding functions and update the load_image and load_depth functions to use padding. This will allow the model to handle any input size by padding to the nearest multiple of 14 and then removing the padding after inference.

You can review changes in this commit: endic-sam928281@0b4c272.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

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

No branches or pull requests

2 participants