diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-11 10:22:59 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-11 10:22:59 +0000 |
commit | 3531a50080e63197752dd4d9b49f0ac34a758e12 (patch) | |
tree | 9186f3ea4c906f87632a123bce288bf5cce284d0 /modules/images.py | |
parent | bb3ecc32856dc1341f2fb6c41efca8ade0f5217e (diff) | |
download | stable-diffusion-webui-gfx803-3531a50080e63197752dd4d9b49f0ac34a758e12.tar.gz stable-diffusion-webui-gfx803-3531a50080e63197752dd4d9b49f0ac34a758e12.tar.bz2 stable-diffusion-webui-gfx803-3531a50080e63197752dd4d9b49f0ac34a758e12.zip |
rename fields for API for saving/sending images
save images to correct directories
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/images.py b/modules/images.py index f8e62b71..5b80c23e 100644 --- a/modules/images.py +++ b/modules/images.py @@ -489,9 +489,6 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i """
namegen = FilenameGenerator(p, seed, prompt, image)
- if path is None: # set default path to avoid errors when functions are triggered manually or via api and param is not set
- path = opts.outdir_save
-
if save_to_dirs is None:
save_to_dirs = (grid and opts.grid_save_to_dirs) or (not grid and opts.save_to_dirs and not no_prompt)
|