OpenTexture / Paint3D

Paint3D: Paint Anything 3D with Lighting-Less Texture Diffusion Models, a no lighting baked texture generative model
https://paint3d.github.io/
Apache License 2.0
579 stars 22 forks source link

VRAM requirements? #6

Open DenisKochetov opened 1 month ago

DenisKochetov commented 1 month ago

image Cant fit into 24gb vram. This is sd1.5, why is it so big?

Zzlongjuanfeng commented 1 month ago

Enable xformers may solve your problem (https://github.com/OpenTexture/Paint3D/blob/main/controlnet/diffusers_cnet_txt2img.py#L23)

Cmd190 commented 1 month ago

Same problem here. Installing xformers and enabling it leads to problems with kaolin because the torch version gets updated to 2.3. I can't find a xformers version that support pytorch 1.12.

But setting the environment variable PYTORCH_CUDA_ALLOC_CONF to 512 MB (https://stackoverflow.com/questions/73747731/runtimeerror-cuda-out-of-memory-how-can-i-set-max-split-size-mb ) did the job for me. I am now able to run both demo objects on a 24gb gpu