From 2f071c65867652bc9530a1ea44e1789ce3aac4d7 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Mon, 11 Sep 2023 09:55:28 -0400 Subject: [PATCH] cleanup --- .gitignore | 1 + TODO.md | 1 - modules/processing.py | 1 - modules/ui.py | 2 +- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index bde1bf3bd..362e9c257 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ __pycache__ .ruff_cache /cache.json /*.json +/*.yaml /params.txt /styles.csv /user.css diff --git a/TODO.md b/TODO.md index 8c5441e7a..e3e463db8 100644 --- a/TODO.md +++ b/TODO.md @@ -33,7 +33,6 @@ Stuff to be added, in no particular order... - XYZ grid upscalers - Built-in `motd`-style notifications - Docker PR - - Add force hires - New Major - Style editor - Profile manager (for `config.json` and `ui-config.json`) diff --git a/modules/processing.py b/modules/processing.py index a07434ed7..bf68f0d6c 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -212,7 +212,6 @@ class StableDiffusionProcessing: conditioning_mask = np.array(image_mask.convert("L")) conditioning_mask = conditioning_mask.astype(np.float32) / 255.0 conditioning_mask = torch.from_numpy(conditioning_mask[None, None]) - # Inpainting model uses a discretized mask as input, so we round to either 1.0 or 0.0 conditioning_mask = torch.round(conditioning_mask) else: diff --git a/modules/ui.py b/modules/ui.py index 1b12839a3..dd6fb198a 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -391,7 +391,7 @@ def create_ui(startup_timer = None): with FormGroup(visible=show_second_pass.value, elem_id="txt2img_second_pass") as second_pass_group: with FormRow(elem_id="sampler_selection_txt2img_alt_row1"): latent_index = gr.Dropdown(label='Secondary sampler', elem_id="txt2img_sampling_alt", choices=[x.name for x in modules.sd_samplers.samplers], value='Default', type="index") - denoising_strength = gr.Slider(minimum=0.05, maximum=1.0, step=0.01, label='Denoising strength', value=0.3, elem_id="txt2img_denoising_strength") + denoising_strength = gr.Slider(minimum=0.05, maximum=1.0, step=0.01, label='Denoising strength', value=0.5, elem_id="txt2img_denoising_strength") with FormRow(elem_id="txt2img_hires_finalres", variant="compact"): hr_final_resolution = FormHTML(value="", elem_id="txtimg_hr_finalres", label="Upscaled resolution", interactive=False) with FormRow(elem_id="txt2img_hires_fix_row1", variant="compact"):