Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmandic committed Sep 11, 2023
1 parent 1f730b1 commit 2f071c6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__
.ruff_cache
/cache.json
/*.json
/*.yaml
/params.txt
/styles.csv
/user.css
Expand Down
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
1 change: 0 additions & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def inpainting_image_conditioning(self, source_image, latent_image, image_mask=N
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:
Expand Down
2 changes: 1 addition & 1 deletion modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 2f071c6

Please sign in to comment.