Stability-AI / stablediffusion

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

memory leak? #278

Open twmht opened 1 year ago

twmht commented 1 year ago

Trying to use

python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse" --ckpt <path/to/768model.ckpt/> --config configs/stable-diffusion/v2-inference-v.yaml --H 768 --W 768  

I set n_iter to 1000 and n_samples to 1, the process is out of memory when procedding about 100 images.

is this a memory leak problem or is there any config i need to set to avoid that?