, weight_name="cereal_box_sdxl_v1.safetensors")
prompt = "bears, pizza bites"
image = pipeline(prompt).images[0]
image  The load_lora_weights() method loads LoRA weights into both the UNet and text encoder. It is the preferred way for loading LoRAs because it can handle cases where: the LoRA weights don’t have separate identifiers for the UNet and text encoder the LoRA weights have separate identifiers for the UNet and text encoder But if you o