plug-and-play icon indicating copy to clipboard operation
plug-and-play copied to clipboard

High memory demand

Open philippmaa opened this issue 1 year ago • 1 comments

Hi there, thanks for sharing this code. I am currently trying to make it work using an NVIDIA GeForce RTX 3060 with 12GB RAM. If I run "run_features_extraction.py" the call "z_enc, _ = sampler.encode_ddim(...)" finishes. However, right afterward when calling "samples_ddim, _ = sampler.sample()" I run into a "RuntimeError: CUDA out of memory" error. Is there some problem or does the model really need that much memory? I would appreciate any help.

philippmaa avatar Jun 27 '23 14:06 philippmaa

Yes, it's the problem of your VRAM size. I have successfully run the code and it requires about 17G VRAM.

Screenshot 2023-07-29 at 22 19 21

chunyu-li avatar Jul 29 '23 14:07 chunyu-li