aboutsummaryrefslogtreecommitdiff
path: root/modules/api
diff options
context:
space:
mode:
authorarcticfaded <jbelt021@fiu.edu>2022-10-17 20:36:14 +0000
committerarcticfaded <jbelt021@fiu.edu>2022-10-17 20:36:14 +0000
commitf29b16bad19b6332a15b2ef439864d866277fffb (patch)
tree4c9b6227d4d49f7f0c27d56a7b9d080fecd2e472 /modules/api
parentf80e914ac4aa69a9783b4040813253500b34d925 (diff)
prevent API from saving
Diffstat (limited to 'modules/api')
-rw-r--r--modules/api/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 5e86c3bf..ce72c5ee 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -26,6 +26,8 @@ class Api:
populate = txt2imgreq.copy(update={ # Override __init__ params
"sd_model": shared.sd_model,
"sampler_index": 0,
+ "do_not_save_samples": True,
+ "do_not_save_grid": True
}
)
p = StableDiffusionProcessingTxt2Img(**vars(populate))