-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Replies: 1 comment · 6 replies
-
if loading the pipeline like you wrote worked, you just need to do the Unless you fuse the LoRA you'll still need to load it separately though. I see that in your repo, the text_encoder it's wrong, it weights 1.19 MB and the naming suggests this is your LoRA |
Beta Was this translation helpful? Give feedback.
All reactions
-
Are you sure that if you load it like in the first post you wrote it works? There's multiple things wrong with this, one is that the This suggests that the modifications you did are not correct so your training shouldn't work in the first place. Also if it works when you load it, the |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for your response. First of all, it works fine if you load it as in the first post. I'm attaching below the code I trained by replacing the text_encoder part in the official script. If I use the
|
Beta Was this translation helpful? Give feedback.
All reactions
-
My account was in error and has been recovered. Can I get the above answer again? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi, that's a lot of code, can you just post the parts you changed? If not, it will take me some time to test it, because I'll need to run it, debug it and compare it with the original. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
-
hi, i'm pizzalist
I want to fix the following HuggingFace pipeline upload and loading bug.
First, let me explain my situation.
I used https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/test_text_to_image_lora.py
In that code, I replaced text encoder with another ko-clip and modified text encoder and unet to have lora finetuning.
I took the pytorch_lora_weights.safetensors from the learned output and added the
to see that it worked, so I wanted to upload this pipeline to HuggingFace to download it and do some text-to-image work, so I uploaded it as follows.
pipeline.push_to_hub("letgoofthepizza/sd-pokemon-diffusers-ko") tokenizer.push_to_hub("letgoofthepizza/sd-pokemon-diffusers-ko") text_encoder.push_to_hub("letgoofthepizza/sd-pokemon-diffusers-ko")
Then I loaded the model again with the following code and got the error below. What did I miss?
here is my model in hf
https://huggingface.co/letgoofthepizza/sd-pokemon-diffusers-ko
Beta Was this translation helpful? Give feedback.
All reactions