Reworked automagic optimizer and did more testing. Starting to really like it. Working well.
This commit is contained in:
1 parent
88b3fbae37
commit
2b4c525489
5 files changed
+149
-61
No files matched your search
@@ -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