AniPortrait icon indicating copy to clipboard operation
AniPortrait copied to clipboard

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

Open THEBEST-cloud opened this issue 1 year ago • 4 comments

THEBEST-cloud avatar Jul 17 '24 09:07 THEBEST-cloud

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 avatar Aug 11 '24 06:08 wack-back

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!

wack-back avatar Aug 11 '24 07:08 wack-back

same issue CUDA is out of memory

yakshi26 avatar Mar 03 '25 14:03 yakshi26

我也是

hyunjaenow avatar Mar 15 '25 13:03 hyunjaenow