Compare commits

..
Author SHA1 Message Date
DepFA a344a147c8 Default window title progress updates on 2022-10-06 01:35:07 +01:00
DepFA b98670a559 add check for progress in title setting 2022-10-06 01:10:38 +01:00
DepFA 7d9d9bf3b9 Update shared.py 2022-10-06 01:09:44 +01:00
3 changed files with 6 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ function check_progressbar(id_part, id_progressbar, id_progressbar_span, id_inte
var progressbar = gradioApp().getElementById(id_progressbar)
var interrupt = gradioApp().getElementById(id_interrupt)
if(progressbar && progressbar.offsetParent){
if(opts.show_progress_in_title && progressbar && progressbar.offsetParent){
if(progressbar.innerText){
let newtitle = 'Stable Diffusion - ' + progressbar.innerText
if(document.title != newtitle){
+1
View File
@@ -235,6 +235,7 @@ options_templates.update(options_section(('ui', "User interface"), {
"font": OptionInfo("", "Font for image grids that have text"),
"js_modal_lightbox": OptionInfo(True, "Enable full page image viewer"),
"js_modal_lightbox_initialy_zoomed": OptionInfo(True, "Show images zoomed in by default in full page image viewer"),
"show_progress_in_title": OptionInfo(True, "Show generation progress in window title."),
}))
options_templates.update(options_section(('sampler-params', "Sampler parameters"), {
+4 -4
View File
@@ -1,9 +1,8 @@
from collections import namedtuple
from copy import copy
from itertools import permutations, chain
from itertools import permutations
import random
import csv
from io import StringIO
from PIL import Image
import numpy as np
@@ -169,6 +168,7 @@ re_range_float = re.compile(r"\s*([+-]?\s*\d+(?:.\d*)?)\s*-\s*([+-]?\s*\d+(?:.\d
re_range_count = re.compile(r"\s*([+-]?\s*\d+)\s*-\s*([+-]?\s*\d+)(?:\s*\[(\d+)\s*\])?\s*")
re_range_count_float = re.compile(r"\s*([+-]?\s*\d+(?:.\d*)?)\s*-\s*([+-]?\s*\d+(?:.\d*)?)(?:\s*\[(\d+(?:.\d*)?)\s*\])?\s*")
class Script(scripts.Script):
def title(self):
return "X/Y plot"
@@ -197,7 +197,7 @@ class Script(scripts.Script):
if opt.label == 'Nothing':
return [0]
valslist = list(map(str.strip,chain.from_iterable(csv.reader(StringIO(vals)))))
valslist = [x.strip() for x in vals.split(",")]
if opt.type == int:
valslist_ext = []