AUTOMATIC1111 hai 1 ano
pai
achega
80d639a440
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      modules/sd_hijack.py
  2. 2 2
      modules/sd_models.py
  3. 1 1
      modules/sd_models_types.py

+ 1 - 1
modules/sd_hijack.py

@@ -183,7 +183,7 @@ class StableDiffusionModelHijack:
         except Exception as e:
             errors.display(e, "applying cross attention optimization")
             undo_optimizations()
-            
+
     def conv_ssd(self, m):
             delattr(m.model.diffusion_model.middle_block, '1')
             delattr(m.model.diffusion_model.middle_block, '2')

+ 2 - 2
modules/sd_models.py

@@ -355,10 +355,10 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
     model.is_ssd = model.is_sdxl and 'model.diffusion_model.middle_block.1.transformer_blocks.0.attn1.to_q.weight' not in state_dict.keys()
     if model.is_sdxl:
         sd_models_xl.extend_sdxl(model)
-    
+
     if model.is_ssd:
         sd_hijack.model_hijack.conv_ssd(model)
-        
+
     if shared.opts.sd_checkpoint_cache > 0:
         # cache newly loaded model
         checkpoints_loaded[checkpoint_info] = state_dict.copy()

+ 1 - 1
modules/sd_models_types.py

@@ -23,7 +23,7 @@ class WebuiSdModel(LatentDiffusion):
 
     is_sdxl: bool
     """True if the model's architecture is SDXL or SSD"""
-    
+
     is_ssd: bool
     """True if the model is SSD"""