Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
38.83k stars 5.01k forks source link

run scripts/gradio/depth2img.py getting "RuntimeError: CUDA out of memory." #257

Open liuxianyi opened 1 year ago

liuxianyi commented 1 year ago

My machine is RTX2080ti, 11G Memory.

RuntimeError at:

  File "scripts/gradio/depth2img.py", line 110, in paint
    x_samples_ddim = model.decode_first_stage(samples)

I found when I upload an image and click run in Gradio page, it will need extra memory. I'm confused. Isn't DDIMSampler already started when starting Gradio?

anvenle commented 11 months ago

3090,24Gis your need