diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-09 16:33:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 16:33:00 +0000 |
commit | 905b14237fbc42f56ed20f0333ae5e1f06ce9bae (patch) | |
tree | 0e6cf7f344faed75b16150a4c4dfb66a9a9ec620 /modules/shared_init.py | |
parent | 6869d95890849c9b209bb66774539bfdf870df2c (diff) | |
parent | ca671e5d7b9d03227f01e6bcb350032b6d14e722 (diff) | |
download | stable-diffusion-webui-gfx803-905b14237fbc42f56ed20f0333ae5e1f06ce9bae.tar.gz stable-diffusion-webui-gfx803-905b14237fbc42f56ed20f0333ae5e1f06ce9bae.tar.bz2 stable-diffusion-webui-gfx803-905b14237fbc42f56ed20f0333ae5e1f06ce9bae.zip |
Merge pull request #14597 from AUTOMATIC1111/improved-manual-cast
Improve the implementation of Manual Cast and IPEX support
Diffstat (limited to 'modules/shared_init.py')
-rw-r--r-- | modules/shared_init.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared_init.py b/modules/shared_init.py index 586be342..935e3a21 100644 --- a/modules/shared_init.py +++ b/modules/shared_init.py @@ -29,6 +29,7 @@ def initialize(): devices.dtype = torch.float32 if cmd_opts.no_half else torch.float16
devices.dtype_vae = torch.float32 if cmd_opts.no_half or cmd_opts.no_half_vae else torch.float16
+ devices.dtype_inference = torch.float32 if cmd_opts.precision == 'full' else devices.dtype
shared.device = devices.device
shared.weight_load_location = None if cmd_opts.lowram else "cpu"
|