Skip to content

Commit

Permalink
added interrupt button
Browse files Browse the repository at this point in the history
added save button
--always-batch-cond-uncond as a workaround for performance regression option for low memory users
specify gradio version as 3.1.5 because of what looks like a bug
  • Loading branch information
AUTOMATIC1111 committed Sep 1, 2022
1 parent 54dc6f9 commit a6adc22
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 70 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
basicsr
gfpgan
gradio
gradio==3.1.5
numpy
Pillow
realesrgan
Expand Down
7 changes: 4 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
console.log("running")

titles = {
"Sampling steps": "How many times to imptove the generated image itratively; higher values take longer; very low values can produce bad results",
"Sampling method": "Which algorithm to use to produce the image",
Expand Down Expand Up @@ -29,14 +27,17 @@ titles = {
"Inpaint at full resolution": "Upscale masked region to target resolution, do inpainting, downscale back and paste into original image",

"Denoising Strength": "Determines how little respect the algorithm should have for image's content. At 0, nothing will change, and at 1 you'll get an unrelated image.",

"Interrupt": "Stop processing images and return any results accumulated so far.",
"Save": "Write image to a directory (default - log/images) and generation parameters into csv file.",
}

function gradioApp(){
return document.getElementsByTagName('gradio-app')[0];
}

function addTitles(root){
root.querySelectorAll('span').forEach(function(span){
root.querySelectorAll('span, button').forEach(function(span){
tooltip = titles[span.textContent];
if(tooltip){
span.title = tooltip;
Expand Down
Loading

0 comments on commit a6adc22

Please sign in to comment.