mirror of
https://github.com/vladmandic/automatic
synced 2026-09-01 10:01:01 +02:00
force gc at processing end
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -465,5 +465,5 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
||||
if not p.disable_extra_networks:
|
||||
shared.log.info(f'Processed: images={len(output_images)} its={(p.steps * len(output_images)) / (t1 - t0):.2f} time={t1-t0:.2f} timers={timer.process.dct()} memory={memstats.memory_stats()}')
|
||||
|
||||
devices.torch_gc(force=False, reason='final')
|
||||
devices.torch_gc(force=True, reason='final')
|
||||
return processed
|
||||
|
||||
Reference in New Issue
Block a user