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
b0583be0
Commit
b0583be0
authored
Oct 11, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more renames
parent
873efeed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
modules/hypernetworks/ui.py
modules/hypernetworks/ui.py
+2
-2
modules/ui.py
modules/ui.py
+2
-2
webui.py
webui.py
+1
-1
No files found.
modules/hypernetworks/ui.py
View file @
b0583be0
...
...
@@ -13,7 +13,7 @@ def create_hypernetwork(name):
fn
=
os
.
path
.
join
(
shared
.
cmd_opts
.
hypernetwork_dir
,
f
"{name}.pt"
)
assert
not
os
.
path
.
exists
(
fn
),
f
"file {fn} already exists"
hypernet
=
modules
.
hypernetwork
.
hypernetwork
.
Hypernetwork
(
name
=
name
)
hypernet
=
modules
.
hypernetwork
s
.
hypernetwork
.
Hypernetwork
(
name
=
name
)
hypernet
.
save
(
fn
)
shared
.
reload_hypernetworks
()
...
...
@@ -28,7 +28,7 @@ def train_hypernetwork(*args):
try
:
sd_hijack
.
undo_optimizations
()
hypernetwork
,
filename
=
modules
.
hypernetwork
.
hypernetwork
.
train_hypernetwork
(
*
args
)
hypernetwork
,
filename
=
modules
.
hypernetwork
s
.
hypernetwork
.
train_hypernetwork
(
*
args
)
res
=
f
"""
Training {'interrupted' if shared.state.interrupted else 'finished'} at {hypernetwork.step} steps.
...
...
modules/ui.py
View file @
b0583be0
...
...
@@ -1111,7 +1111,7 @@ def create_ui(wrap_gradio_gpu_call):
)
create_hypernetwork
.
click
(
fn
=
modules
.
hypernetwork
.
ui
.
create_hypernetwork
,
fn
=
modules
.
hypernetwork
s
.
ui
.
create_hypernetwork
,
inputs
=
[
new_hypernetwork_name
,
],
...
...
@@ -1164,7 +1164,7 @@ def create_ui(wrap_gradio_gpu_call):
)
train_hypernetwork
.
click
(
fn
=
wrap_gradio_gpu_call
(
modules
.
hypernetwork
.
ui
.
train_hypernetwork
,
extra_outputs
=
[
gr
.
update
()]),
fn
=
wrap_gradio_gpu_call
(
modules
.
hypernetwork
s
.
ui
.
train_hypernetwork
,
extra_outputs
=
[
gr
.
update
()]),
_js
=
"start_training_textual_inversion"
,
inputs
=
[
train_hypernetwork_name
,
...
...
webui.py
View file @
b0583be0
...
...
@@ -83,7 +83,7 @@ modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
shared
.
sd_model
=
modules
.
sd_models
.
load_model
()
shared
.
opts
.
onchange
(
"sd_model_checkpoint"
,
wrap_queued_call
(
lambda
:
modules
.
sd_models
.
reload_model_weights
(
shared
.
sd_model
)))
shared
.
opts
.
onchange
(
"sd_hypernetwork"
,
wrap_queued_call
(
lambda
:
modules
.
hypernetwork
.
hypernetwork
.
load_hypernetwork
(
shared
.
opts
.
sd_hypernetwork
)))
shared
.
opts
.
onchange
(
"sd_hypernetwork"
,
wrap_queued_call
(
lambda
:
modules
.
hypernetwork
s
.
hypernetwork
.
load_hypernetwork
(
shared
.
opts
.
sd_hypernetwork
)))
def
webui
():
...
...
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