diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-19 13:42:56 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-19 13:42:56 +0000 |
commit | 6d7ca54a1a9f448419acb31a54c5e28f3e4bcc4c (patch) | |
tree | 191fdac3aaa1502c161b1757e44886157809e4c3 /modules/txt2img.py | |
parent | 8a32a71ca3223cf7b0911fe55db2c6dece2bacca (diff) | |
download | stable-diffusion-webui-gfx803-6d7ca54a1a9f448419acb31a54c5e28f3e4bcc4c.tar.gz stable-diffusion-webui-gfx803-6d7ca54a1a9f448419acb31a54c5e28f3e4bcc4c.tar.bz2 stable-diffusion-webui-gfx803-6d7ca54a1a9f448419acb31a54c5e28f3e4bcc4c.zip |
added highres fix feature
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)
|