mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 04:42:09 -08:00
preserve detected dtype_inference
This commit is contained in:
parent
24f2c1b9e4
commit
477ff35517
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +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
|
||||
devices.dtype_inference = torch.float32 if cmd_opts.precision == 'full' else devices.dtype_inference
|
||||
|
||||
if cmd_opts.precision == "half":
|
||||
msg = "--no-half and --no-half-vae conflict with --precision half"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue