mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-22 15:29:08 +00:00
Reworked automagic optimizer and did more testing. Starting to really like it. Working well.
This commit is contained in:
@@ -142,15 +142,15 @@ class StableDiffusion:
|
||||
):
|
||||
self.accelerator = get_accelerator()
|
||||
self.custom_pipeline = custom_pipeline
|
||||
self.device = str(self.accelerator.device)
|
||||
self.device = device
|
||||
self.device_torch = torch.device(device)
|
||||
self.dtype = dtype
|
||||
self.torch_dtype = get_torch_dtype(dtype)
|
||||
self.device_torch = self.accelerator.device
|
||||
|
||||
self.vae_device_torch = self.accelerator.device
|
||||
self.vae_device_torch = torch.device(device)
|
||||
self.vae_torch_dtype = get_torch_dtype(model_config.vae_dtype)
|
||||
|
||||
self.te_device_torch = self.accelerator.device
|
||||
self.te_device_torch = torch.device(device)
|
||||
self.te_torch_dtype = get_torch_dtype(model_config.te_dtype)
|
||||
|
||||
self.model_config = model_config
|
||||
|
||||
Reference in New Issue
Block a user