mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
memory optimizations
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -483,4 +483,5 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
||||
for stat in stats[:20]:
|
||||
frame = stat.traceback[0]
|
||||
shared.log.debug(f' file="{frame.filename}":{frame.lineno} size={stat.size}')
|
||||
devices.torch_gc(force=True)
|
||||
return processed
|
||||
|
||||
Reference in New Issue
Block a user