Load LoRA XXX.safetensors to diffusers (StableDiffusionPipeline/StableDiffusionControlNetPipeline)
defload_lora_weights(pipeline,checkpoint_path,multiplier,device,dtype):LORA_PREFIX_UNET="lora_unet"LORA_PREFIX_TEXT_ENCODER="lora_te"#loadLoRAweightfrom.safetensorsstate_dict=load_file(checkpoint_path