aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorJohannesGaessler <johannesg@5d6.de>2022-09-11 09:18:06 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-11 09:39:09 +0000
commit13008bab90305144591e0b2e233214a8b3415bba (patch)
tree4e975e179e1830489613946a2b1231f57c53a1df /modules/txt2img.py
parentae6b879b8587e2b900c16639d9ba8b07a040c9d3 (diff)
downloadstable-diffusion-webui-gfx803-13008bab90305144591e0b2e233214a8b3415bba.tar.gz
stable-diffusion-webui-gfx803-13008bab90305144591e0b2e233214a8b3415bba.tar.bz2
stable-diffusion-webui-gfx803-13008bab90305144591e0b2e233214a8b3415bba.zip
Fixed prompt_style type hints: int -> str
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 070bd094..d60febfc 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -6,7 +6,7 @@ import modules.processing as processing
from modules.ui import plaintext_to_html
-def txt2img(prompt: str, negative_prompt: str, prompt_style: int, steps: int, sampler_index: int, restore_faces: bool, tiling: bool, n_iter: int, batch_size: int, cfg_scale: float, seed: int, subseed: int, subseed_strength: float, seed_resize_from_h: int, seed_resize_from_w: int, height: int, width: int, *args):
+def txt2img(prompt: str, negative_prompt: str, prompt_style: str, steps: int, sampler_index: int, restore_faces: bool, tiling: bool, n_iter: int, batch_size: int, cfg_scale: float, seed: int, subseed: int, subseed_strength: float, seed_resize_from_h: int, seed_resize_from_w: int, height: int, width: int, *args):
p = StableDiffusionProcessingTxt2Img(
sd_model=shared.sd_model,
outpath_samples=opts.outdir_samples or opts.outdir_txt2img_samples,