This commit is contained in:
Vladimir Mandic
2023-09-11 09:55:28 -04:00
parent 1f730b129f
commit 2f071c6586
4 changed files with 2 additions and 3 deletions
+1
View File
@@ -3,6 +3,7 @@ __pycache__
.ruff_cache
/cache.json
/*.json
/*.yaml
/params.txt
/styles.csv
/user.css
-1
View File
@@ -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`)
-1
View File
@@ -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:
+1 -1
View File
@@ -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"):