diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-06 17:10:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 17:10:11 +0000 |
commit | 2cfcb23c165b7ca9c0ac10bbdb13662b87d6e493 (patch) | |
tree | 9085640d50976eb26af3804683e60101ccb13d4a /modules/extras.py | |
parent | 82eb8ea452b1e63535c58d15ec6db2ad2342faa8 (diff) | |
parent | b66aa334a908cb8d760f2a65c1ebdf0cf336950a (diff) | |
download | stable-diffusion-webui-gfx803-2cfcb23c165b7ca9c0ac10bbdb13662b87d6e493.tar.gz stable-diffusion-webui-gfx803-2cfcb23c165b7ca9c0ac10bbdb13662b87d6e493.tar.bz2 stable-diffusion-webui-gfx803-2cfcb23c165b7ca9c0ac10bbdb13662b87d6e493.zip |
Merge pull request #1283 from jn-jairo/fix-vram
Fix memory leak and reduce memory usage
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/extras.py b/modules/extras.py index 6a0d5cb0..1d9e64e5 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -100,6 +100,8 @@ def run_extras(extras_mode, image, image_folder, gfpgan_visibility, codeformer_v outputs.append(image)
+ devices.torch_gc()
+
return outputs, plaintext_to_html(info), ''
|