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
1e506657
Commit
1e506657
authored
Nov 26, 2022
by
MrCheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no-half support for SD 2.0
parent
b5050ad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
sd_models.py
modules/sd_models.py
+3
-0
No files found.
modules/sd_models.py
View file @
1e506657
...
@@ -244,6 +244,9 @@ def load_model(checkpoint_info=None):
...
@@ -244,6 +244,9 @@ def load_model(checkpoint_info=None):
do_inpainting_hijack
()
do_inpainting_hijack
()
if
shared
.
cmd_opts
.
no_half
:
sd_config
.
model
.
params
.
unet_config
.
params
.
use_fp16
=
False
sd_model
=
instantiate_from_config
(
sd_config
.
model
)
sd_model
=
instantiate_from_config
(
sd_config
.
model
)
load_model_weights
(
sd_model
,
checkpoint_info
)
load_model_weights
(
sd_model
,
checkpoint_info
)
...
...
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