Skip to content

Commit

Permalink
updated interface to use Blocks
Browse files Browse the repository at this point in the history
added mode toggle for img2img
added inpainting to readme
  • Loading branch information
AUTOMATIC1111 committed Aug 30, 2022
1 parent bb2faa5 commit 7434b3e
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 70 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ To use this feature, tick a checkbox in the img2img interface. Original
image will be upscaled to twice the original width and height, while width and height sliders
will specify the size of individual tiles. At the moment this method does not support batch size.

Rcommended parameters for upscaling:
- Sampling method: Euler a
- Denoising strength: 0.2, can go up to 0.4 if you feel adventureous

![](images/sd-upscale.jpg)

### User scripts
Expand Down Expand Up @@ -261,4 +265,7 @@ compared to normal operation on my RTX 3090.
This is an independent implementation that does not require any modification to original Stable Diffusion code, and
with all code concenrated in one place rather than scattered around the program.

### Inpainting
In img2img tab, draw a mask over a part of image, and that part will be in-painted.

![](images/inpainting.png)
Binary file added images/inpainting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@

button{
align-self: stretch !important;
}

#img2img_mode{
padding: 0 0 1em 0;
border: none !important;
}

#img2img_prompt, #txt2img_prompt{
padding: 0;
border: none !important;
}

#img2maskimg .h-60{
height: 30rem;
}

.overflow-hidden, .gr-panel{
overflow: visible !important;
}

fieldset span.text-gray-500{
position: absolute;
top: -0.425em;
background-color: rgb(249 250 251);
line-height: 0.7em;
padding: 0 0.5em;
}
.dark fieldset span.text-gray-500 { background-color: rgb(17 24 39); }

.gr-panel div.flex-col div.justify-between label, label.block span{
position: absolute;
top: -0.4em;
background-color: rgb(249 250 251);
line-height: 0.7em;
padding: 0 0.5em;
margin: 0;
}
.dark .gr-panel div.flex-col div.justify-between label{ background-color: rgb(17 24 39); }

.gr-panel div.flex-col div.justify-between label span{
margin: 0;
}

.gr-panel div.flex-col div.justify-between div{
position: absolute;
top: -0.1em;
right: 1em;
padding: 0 0.5em;
}

input[type="range"]{
margin: 0.5em 0 -0.3em 0;
}

#txt2img_sampling label{
padding-left: 0.6em;
padding-right: 0.6em;
}
Loading

0 comments on commit 7434b3e

Please sign in to comment.