Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
78f59a4e
Commit
78f59a4e
authored
Jan 21, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable compact view for train tab
prevent previews from ruining hypernetwork training
parent
216f67ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
modules/hypernetworks/hypernetwork.py
modules/hypernetworks/hypernetwork.py
+2
-0
modules/processing.py
modules/processing.py
+6
-2
modules/ui.py
modules/ui.py
+1
-1
No files found.
modules/hypernetworks/hypernetwork.py
View file @
78f59a4e
...
...
@@ -715,6 +715,8 @@ def train_hypernetwork(id_task, hypernetwork_name, learn_rate, batch_size, gradi
do_not_save_samples
=
True
,
)
p
.
disable_extra_networks
=
True
if
preview_from_txt2img
:
p
.
prompt
=
preview_prompt
p
.
negative_prompt
=
preview_negative_prompt
...
...
modules/processing.py
View file @
78f59a4e
...
...
@@ -140,6 +140,7 @@ class StableDiffusionProcessing:
self
.
override_settings
=
{
k
:
v
for
k
,
v
in
(
override_settings
or
{})
.
items
()
if
k
not
in
shared
.
restricted_opts
}
self
.
override_settings_restore_afterwards
=
override_settings_restore_afterwards
self
.
is_using_inpainting_conditioning
=
False
self
.
disable_extra_networks
=
False
if
not
seed_enable_extras
:
self
.
subseed
=
-
1
...
...
@@ -567,7 +568,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
with
devices
.
autocast
():
p
.
init
(
p
.
all_prompts
,
p
.
all_seeds
,
p
.
all_subseeds
)
extra_networks
.
activate
(
p
,
extra_network_data
)
if
not
p
.
disable_extra_networks
:
extra_networks
.
activate
(
p
,
extra_network_data
)
with
open
(
os
.
path
.
join
(
shared
.
script_path
,
"params.txt"
),
"w"
,
encoding
=
"utf8"
)
as
file
:
processed
=
Processed
(
p
,
[],
p
.
seed
,
""
)
...
...
@@ -684,7 +686,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if
opts
.
grid_save
:
images
.
save_image
(
grid
,
p
.
outpath_grids
,
"grid"
,
p
.
all_seeds
[
0
],
p
.
all_prompts
[
0
],
opts
.
grid_format
,
info
=
infotext
(),
short_filename
=
not
opts
.
grid_extended_filename
,
p
=
p
,
grid
=
True
)
extra_networks
.
deactivate
(
p
,
extra_network_data
)
if
not
p
.
disable_extra_networks
:
extra_networks
.
deactivate
(
p
,
extra_network_data
)
devices
.
torch_gc
()
res
=
Processed
(
p
,
output_images
,
p
.
all_seeds
[
0
],
infotext
(),
comments
=
""
.
join
([
"
\n\n
"
+
x
for
x
in
comments
]),
subseed
=
p
.
all_subseeds
[
0
],
index_of_first_image
=
index_of_first_image
,
infotexts
=
infotexts
)
...
...
modules/ui.py
View file @
78f59a4e
...
...
@@ -1259,7 +1259,7 @@ def create_ui():
with
gr
.
Row
()
.
style
(
equal_height
=
False
):
gr
.
HTML
(
value
=
"<p style='margin-bottom: 0.7em'>See <b><a href=
\"
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion
\"
>wiki</a></b> for detailed explanation.</p>"
)
with
gr
.
Row
()
.
style
(
equal_height
=
False
):
with
gr
.
Row
(
variant
=
"compact"
)
.
style
(
equal_height
=
False
):
with
gr
.
Tabs
(
elem_id
=
"train_tabs"
):
with
gr
.
Tab
(
label
=
"Create embedding"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment