aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extras.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-06 17:10:11 +0000
committerGitHub <noreply@github.com>2022-10-06 17:10:11 +0000
commit2cfcb23c165b7ca9c0ac10bbdb13662b87d6e493 (patch)
tree9085640d50976eb26af3804683e60101ccb13d4a /modules/extras.py
parent82eb8ea452b1e63535c58d15ec6db2ad2342faa8 (diff)
parentb66aa334a908cb8d760f2a65c1ebdf0cf336950a (diff)
downloadstable-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.py2
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), ''