Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
6bec9c3a
Unverified
Commit
6bec9c3a
authored
Aug 28, 2022
by
AUTOMATIC1111
Committed by
GitHub
Aug 28, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21 from orionaskatu/patch-1
Typo StableDiffuion
parents
1f2c08d8
e5480e36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
webui.py
webui.py
+2
-2
No files found.
webui.py
View file @
6bec9c3a
...
@@ -519,7 +519,7 @@ if os.path.exists(cmd_opts.gfpgan_dir):
...
@@ -519,7 +519,7 @@ if os.path.exists(cmd_opts.gfpgan_dir):
print
(
traceback
.
format_exc
(),
file
=
sys
.
stderr
)
print
(
traceback
.
format_exc
(),
file
=
sys
.
stderr
)
class
StableDiffuionModelHijack
:
class
StableDiffu
s
ionModelHijack
:
ids_lookup
=
{}
ids_lookup
=
{}
word_embeddings
=
{}
word_embeddings
=
{}
word_embeddings_checksums
=
{}
word_embeddings_checksums
=
{}
...
@@ -1328,7 +1328,7 @@ sd_model = load_model_from_config(sd_config, cmd_opts.ckpt)
...
@@ -1328,7 +1328,7 @@ sd_model = load_model_from_config(sd_config, cmd_opts.ckpt)
device
=
torch
.
device
(
"cuda"
)
if
torch
.
cuda
.
is_available
()
else
torch
.
device
(
"cpu"
)
device
=
torch
.
device
(
"cuda"
)
if
torch
.
cuda
.
is_available
()
else
torch
.
device
(
"cpu"
)
sd_model
=
(
sd_model
if
cmd_opts
.
no_half
else
sd_model
.
half
())
.
to
(
device
)
sd_model
=
(
sd_model
if
cmd_opts
.
no_half
else
sd_model
.
half
())
.
to
(
device
)
model_hijack
=
StableDiffuionModelHijack
()
model_hijack
=
StableDiffu
s
ionModelHijack
()
model_hijack
.
hijack
(
sd_model
)
model_hijack
.
hijack
(
sd_model
)
demo
=
gr
.
TabbedInterface
(
demo
=
gr
.
TabbedInterface
(
...
...
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