Postprocessing script to release Python memory? #16201
Unanswered
divergentti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Kubuntu 24.04 LTS + Automatic 1.9.4 seems to hold memory of Python3.10 process if some script crashes, like Tiled Diffusion or ControlNet scripts. This may happen quite often in Linux due to CUDA Out Of Memory or if ContolNet preprosessor is not satisfied to parameters etc.
Typical Python3.10 process memory consumption just after startup using SDXL checkpoint is about 8GB. Upscaling with Tiled Diffusion / VAE could increase memory comsumption sometimes up to 32GB (max RAM) and stay there until startup process webui.sh is killed. Changing checkpoints, or txt2img etc. do not release memory usage.
I created a simple script for a carbage collection from Scripts selection:
... but it seems that gc.collect() does not release memory. Is there some other ways to release hung memory?
Beta Was this translation helpful? Give feedback.
All reactions