From 6d7ca54a1a9f448419acb31a54c5e28f3e4bcc4c Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 19 Sep 2022 16:42:56 +0300 Subject: added highres fix feature --- modules/txt2img.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/txt2img.py') 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) -- cgit v1.2.1