diff options
author | Keavon Chambers <keavon@keavon.com> | 2022-11-19 18:34:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 18:34:31 +0000 |
commit | 2f90496b19cd9c512633742db97b072a7075f017 (patch) | |
tree | 60d2dddd69172d9b5cf58c8da2bd64c61132f4fa /modules/txt2img.py | |
parent | a258fd60dbe2d68325339405a2aa72816d06d2fd (diff) | |
parent | 47a44c7e421b98ca07e92dbf88769b04c9e28f86 (diff) | |
download | stable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.tar.gz stable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.tar.bz2 stable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.zip |
Merge branch 'master' into cors-regex
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 8e4e8677..c8f81176 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -1,4 +1,5 @@ import modules.scripts
+from modules import sd_samplers
from modules.processing import StableDiffusionProcessing, Processed, StableDiffusionProcessingTxt2Img, \
StableDiffusionProcessingImg2Img, process_images
from modules.shared import opts, cmd_opts
@@ -21,7 +22,7 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: seed_resize_from_h=seed_resize_from_h,
seed_resize_from_w=seed_resize_from_w,
seed_enable_extras=seed_enable_extras,
- sampler_index=sampler_index,
+ sampler_name=sd_samplers.samplers[sampler_index].name,
batch_size=batch_size,
n_iter=n_iter,
steps=steps,
|