diff options
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 30d89849..7c6de2e7 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: str, prompt_style2: 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):
+def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: 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, enable_hr: bool, scale_latent: bool, denoising_strength: float, *args):
p = StableDiffusionProcessingTxt2Img(
sd_model=shared.sd_model,
outpath_samples=opts.outdir_samples or opts.outdir_txt2img_samples,
@@ -28,6 +28,9 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: height=height,
restore_faces=restore_faces,
tiling=tiling,
+ enable_hr=enable_hr,
+ scale_latent=scale_latent,
+ denoising_strength=denoising_strength,
)
print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
|