There is a diffusion pipeline from diffusers: [code] I want to unload it. How to do so?
- User
There is a diffusion pipeline from diffusers:
pipe = StableDiffusion3Pipeline.from_pretrained(...) pipe.load_lora_weights(lora_weights_path, weight_name='some tag')I want to unload it. How to do so?
Assistant
Here's how to unload a LoRA weight from a
StableDiffusion3Pipelinein diffusers:pipe.unload_lora_weights()This method removes the loaded LoRA weights from the pipeline, effectively reverting it to its original state. The correct way to unload LoRA weights from a
StableDiffusion3Pipelineis by using theunload_lora_weights()method. Here's the code:pipe.unload_lora_weights()This will remove the LoRA weights that were previously loaded into the pipeline.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.