aboutsummaryrefslogtreecommitdiff
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-19 16:38:21 +0700
committerMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-19 16:38:21 +0700
commit8662b5e57fb66ca16237107e67af97a709457eab (patch)
tree587098ef7713725d24691554cc821b1828d708c0 /modules/txt2img.py
parent45dca0562e0a68d2f92a5b6fe0412dcd8ba0659e (diff)
parentff35ae9abb0e2d680bd881e219baf6c998019a9a (diff)
Merge branch 'a1111' into vae-fix-none
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,