forked from samsartor/stable-diffusion-webui-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebui.patch
85 lines (73 loc) · 3 KB
/
webui.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From 1f6f970e1d0528059984e9b1fa07ca9bdffb55df Mon Sep 17 00:00:00 2001
From: Sam Sartor <[email protected]>
Date: Fri, 30 Jun 2023 17:12:39 -0600
Subject: [PATCH] paches for start9
---
javascript/ui.js | 1 +
modules/shared.py | 2 +-
webui.py | 3 ++-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/javascript/ui.js b/javascript/ui.js
index bfe31525..15949c56 100644
--- a/javascript/ui.js
+++ b/javascript/ui.js
@@ -238,6 +238,7 @@ function restoreProgressImg2img(x){
onUiLoaded(function () {
showRestoreProgressButton('txt2img', localStorage.getItem("txt2img_task_id"))
showRestoreProgressButton('img2img', localStorage.getItem("img2img_task_id"))
+ gradioApp().getElementById(tabname + "_restore_progress").click()
});
diff --git a/modules/shared.py b/modules/shared.py
index 8205f6a8..9537ce9e 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -289,7 +289,7 @@ options_templates.update(options_section(('saving-paths', "Paths for saving"), {
"outdir_grids": OptionInfo("", "Output directory for grids; if empty, defaults to two directories below", component_args=hide_dirs),
"outdir_txt2img_grids": OptionInfo("outputs/txt2img-grids", 'Output directory for txt2img grids', component_args=hide_dirs),
"outdir_img2img_grids": OptionInfo("outputs/img2img-grids", 'Output directory for img2img grids', component_args=hide_dirs),
- "outdir_save": OptionInfo("log/images", "Directory for saving images using the Save button", component_args=hide_dirs),
+ "outdir_save": OptionInfo("saved", "Directory for saving images using the Save button", component_args=hide_dirs),
"outdir_init_images": OptionInfo("outputs/init-images", "Directory for saving init images when using img2img", component_args=hide_dirs),
}))
diff --git a/webui.py b/webui.py
index 3c7f6555..4fecd3ca 100644
--- a/webui.py
+++ b/webui.py
@@ -329,7 +329,8 @@ def webui():
debug=cmd_opts.gradio_debug,
auth=[tuple(cred.split(':')) for cred in gradio_auth_creds] if gradio_auth_creds else None,
inbrowser=cmd_opts.autolaunch,
- prevent_thread_lock=True
+ prevent_thread_lock=True,
+ favicon_path="icon.png",
)
# after initial launch, disable --autolaunch for subsequent restarts
cmd_opts.autolaunch = False
--
2.36.0
From f7cb69b371c5e9ef8cb4ccf3afee734ea936259f Mon Sep 17 00:00:00 2001
From: Sam Sartor <[email protected]>
Date: Sat, 16 Sep 2023 16:31:52 -0400
Subject: [PATCH] hide footgun elements
---
style.css | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/style.css b/style.css
index 3f56087a..efba269d 100644
--- a/style.css
+++ b/style.css
@@ -1,3 +1,14 @@
+/*
+ Hack to prevent width/height-batch-size from showing.
+ Because those are footguns on start9's pure server.
+ */
+#txt2img_column_size,
+#txt2img_dimensions_row,
+#img2img_column_size,
+#txt2img_batch_size,
+#img2img_batch_size {
+ display: none;
+}
/* general gradio fixes */
--
2.36.0