mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-05 21:20:22 +00:00
improve efficiency and support more device
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user