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

Crashes memory on RTX 4090 Laptop (16Go) #10

Closed
nosy-b opened this issue Sep 15, 2024 · 3 comments
Closed

Crashes memory on RTX 4090 Laptop (16Go) #10

nosy-b opened this issue Sep 15, 2024 · 3 comments

Comments

@nosy-b
Copy link

nosy-b commented Sep 15, 2024

Congrats for the great work !
I can't make it run on my laptop with RTX 4090 16Gb with the command
python run.py --video-path examples/example_01.mp4 --max-res 512, it crashes with memory error.

Is there some other ways to optimize for small configuration?
Thanks!

@nosy-b
Copy link
Author

nosy-b commented Sep 15, 2024

It runs with --max-res 256 but is there a way to support higher resolution ? (Even if it 's super slow)
thanks :)

@redman4585
Copy link

redman4585 commented Sep 15, 2024

As it currently stands you will need a graphics card with more VRAM than a 4090 (They recommend a A100) to support the high resolution mode. With further optimizations that won't be necessary.

@wbhu
Copy link
Collaborator

wbhu commented Sep 16, 2024

It runs with --max-res 256 but is there a way to support higher resolution ? (Even if it 's super slow) thanks :)

Yes, you may feed cpu-offload to be "sequential", which can save a lot of memory, but slow. Refer to https://github.com/Tencent/DepthCrafter/blob/main/run.py#L37

@wbhu wbhu closed this as completed Oct 21, 2024
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

3 participants