aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorxucj98 <975114697@qq.com>2022-11-25 09:07:00 +0000
committerGitHub <noreply@github.com>2022-11-25 09:07:00 +0000
commit263b323de12eb2444b0818105575a2bc69ab0344 (patch)
tree7bc4a7802bdaba21550ad281cc08c3fc1037b074 /modules/txt2img.py
parentd20dbe47e06de7f6c0e65242a04c9bb1410ef7cb (diff)
parent828438b4a190759807f9054932cae3a8b880ddf1 (diff)
downloadstable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.tar.gz
stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.tar.bz2
stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.zip
Merge branch 'AUTOMATIC1111:master' into draft
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py3
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,