mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-15 07:03:06 +03:00
no-half support for SD 2.0
This commit is contained in:
parent
b5050ad207
commit
1e506657e1
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user