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

GPU memory of ZeroDepth #47

Open
baibizhe opened this issue Sep 5, 2023 · 3 comments
Open

GPU memory of ZeroDepth #47

baibizhe opened this issue Sep 5, 2023 · 3 comments

Comments

@baibizhe
Copy link

baibizhe commented Sep 5, 2023

Hello. I am try to inference with
zerodepth_model = torch.hub.load("TRI-ML/vidar", "ZeroDepth", pretrained=True, trust_repo=True)
However , it is only possible if I resize input image to a extreme small size.For example, 144,256. If the image size is 640x360. There will be a OOM of GPU. I run all my experiments on A100 40G., Is this normal?

Best regards,
Bizhe

@mrussell9
Copy link

mrussell9 commented Sep 14, 2023

I'm seeing this same issue

Have you found a solution?

@baibizhe
Copy link
Author

I'm seeing this same issue

Have you found a solution?

Not yet

@mrussell9
Copy link

I was able to run inference on a GPU with less VRAM than yours with

with torch.no_grad():
    depth_pred = zerodepth_model(rgb, intrinsics)

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