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 需要多大内存能跑起来 #189

Open
THEBEST-cloud opened this issue Jul 17, 2024 · 2 comments
Open

单卡GPU 需要多大内存能跑起来 #189

THEBEST-cloud opened this issue Jul 17, 2024 · 2 comments

Comments

@THEBEST-cloud
Copy link

No description provided.

@wack-back
Copy link

it took 16GB GPU memory, and 10GB shared memory to run audio2vid for 512x512 video. I tried to reduce the resolution to 256x256, only the shared memory usage is reduce to 5GB, which is not helpful. I can see the 'Pose2VideoPipeline' class took too much memory and training time. Any idea on reducing the memory usage?
BTW, the default weight_dtype is fp16.

@wack-back
Copy link

I can see vae, image_enc, reference_unet uses cuda in x class, and denoising_unet, pose_guider uses cpu in x class. Is that possible to change any of vae, image_enc, reference_unet to uses cpu to improve the memory usage without affecting the quality too much. And how to adjust to apply the above thoughts? Great Appreciate!

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