Results 3 comments of arnon

any refiner using unload_lora_weights() , raise the error refiner_pipeline = AutoPipelineForImage2Image.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", requires_safety_checker=False) refiner_pipeline.load_lora_weights("path/to/refiner_lora/model", weight_name="pytorch_lora_weights.safetensors") refiner_image = refiner_pipeline("A pokemon with blue eyes",image=base_image).images[0] refiner_pipeline.unload_lora_weights() File "/opt/conda/envs/creative-inference-env/lib/python3.9/site-packages/diffusers/loaders/lora.py", line 997, in unload_lora_weights self._remove_text_encoder_monkey_patch() File...

unfortunately not, but any refiner test unload_lora_weights() raises the error since it doesn't take in consideration one text_encoder.

Hi @younesbelkada upload dummy LoRA : https://huggingface.co/arnonrodman/error_in_refiner/tree/main with one text encoding.