stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: Cool Down Timer Between Batch Images

Open CharAznableLoNZ opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

The feature would pause X seconds between images in batches to allow for system temperatures to cool come down before starting on the next image.

Proposed workflow

  1. Go to Settings
  2. Check box "Wait X seconds between batch images to allow for hardware cool down." Then Apply
  3. Start batch.

Additional information

No response

CharAznableLoNZ avatar Oct 21 '22 05:10 CharAznableLoNZ

Yes, I've suggested this several times. Unlike training autoencoders, where the block sizes are large and always fall a bit short of complete saturation of the GPU, SD is capable of maxing out every last tensor, constantly. My 2070S would thank the developers for this.

shadowlocked avatar Oct 21 '22 07:10 shadowlocked

Should mention, the X would ideally be where the user can enter the number of seconds they wish to have the program wait between images. If a custom one can't be set 30 seconds feels like a good number.

CharAznableLoNZ avatar Oct 22 '22 18:10 CharAznableLoNZ

Thermal cycling itself can be quite damaging. It's better to maintain a constant (but not damaging in itself, obviously) temperature, than to cycle up to and down from such a temperature.

For reference, I ran a couple of GPUs with their fans unplugged for so long I had completely forgotten I'd unplugged them. They were "idling" at ~65C (if I recall correctly) for several years. I discovered this when I was swapping them out for upgrades, because they were working fine otherwise.

If temperature is a concern, I'd say you are better off finding out how to throttle the GPU so it never exceeds whatever temperature target you have. Or the flippant suggestion of "get better cooling" :)

Xyem avatar Nov 15 '22 15:11 Xyem

Currently I have pulled back power on the GPU to 50% as well as underclocking the RAM on the card. It can run all night at 48C in a 21C room. At idle it sits at 25C. If I push the power back to 100% the card runs at 70C running a batch, this is down from 80C when running a batch on the stock settings. I've done a number of things to achieve better temps such as ducting from a case intake fan directly to the GPU intake to deliver cold air right to the card as well as changing the fan curve on the GPU to be far more aggressive. I agree that cycling can be damaging however it would be a nice feature to have.

CharAznableLoNZ avatar Nov 17 '22 01:11 CharAznableLoNZ

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/1614 should cover it

mezotaken avatar Jan 13 '23 15:01 mezotaken

I created a patch that adds this feature: https://github.com/narnianpony/AUTOMATIC1111_stable-diffusion-webui_cooldown-patch

narnianpony avatar Jun 21 '23 19:06 narnianpony