Datasets:

ArXiv:
diffusers-bot commited on
Commit
8d29449
1 Parent(s): a6689a9

Upload folder using huggingface_hub

Browse files
main/lpw_stable_diffusion_xl.py CHANGED
@@ -2165,7 +2165,7 @@ class SDXLLongPromptWeightingPipeline(
2165
 
2166
  @classmethod
2167
  def save_lora_weights(
2168
- self,
2169
  save_directory: Union[str, os.PathLike],
2170
  unet_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
2171
  text_encoder_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
@@ -2188,7 +2188,7 @@ class SDXLLongPromptWeightingPipeline(
2188
  state_dict.update(pack_weights(text_encoder_lora_layers, "text_encoder"))
2189
  state_dict.update(pack_weights(text_encoder_2_lora_layers, "text_encoder_2"))
2190
 
2191
- self.write_lora_layers(
2192
  state_dict=state_dict,
2193
  save_directory=save_directory,
2194
  is_main_process=is_main_process,
 
2165
 
2166
  @classmethod
2167
  def save_lora_weights(
2168
+ cls,
2169
  save_directory: Union[str, os.PathLike],
2170
  unet_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
2171
  text_encoder_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
 
2188
  state_dict.update(pack_weights(text_encoder_lora_layers, "text_encoder"))
2189
  state_dict.update(pack_weights(text_encoder_2_lora_layers, "text_encoder_2"))
2190
 
2191
+ cls.write_lora_layers(
2192
  state_dict=state_dict,
2193
  save_directory=save_directory,
2194
  is_main_process=is_main_process,
main/pipeline_demofusion_sdxl.py CHANGED
@@ -1339,7 +1339,7 @@ class DemoFusionSDXLPipeline(
1339
 
1340
  @classmethod
1341
  def save_lora_weights(
1342
- self,
1343
  save_directory: Union[str, os.PathLike],
1344
  unet_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
1345
  text_encoder_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
@@ -1368,7 +1368,7 @@ class DemoFusionSDXLPipeline(
1368
  state_dict.update(pack_weights(text_encoder_lora_layers, "text_encoder"))
1369
  state_dict.update(pack_weights(text_encoder_2_lora_layers, "text_encoder_2"))
1370
 
1371
- self.write_lora_layers(
1372
  state_dict=state_dict,
1373
  save_directory=save_directory,
1374
  is_main_process=is_main_process,
 
1339
 
1340
  @classmethod
1341
  def save_lora_weights(
1342
+ cls,
1343
  save_directory: Union[str, os.PathLike],
1344
  unet_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
1345
  text_encoder_lora_layers: Dict[str, Union[torch.nn.Module, torch.Tensor]] = None,
 
1368
  state_dict.update(pack_weights(text_encoder_lora_layers, "text_encoder"))
1369
  state_dict.update(pack_weights(text_encoder_2_lora_layers, "text_encoder_2"))
1370
 
1371
+ cls.write_lora_layers(
1372
  state_dict=state_dict,
1373
  save_directory=save_directory,
1374
  is_main_process=is_main_process,