Closed CCpt5 closed 9 months ago
Here's a comparison of the two .pys using Beyond Compare - maybe helpful.
Current extract lora script vs. Aug '23 version that I used which works:
The latest version of the extract script has --min_diff
option. If you set the small value like 0.0001
for it, same as the older version, the script will extract Text Encoder part of LoRA.
Ok cool, thanks. Wasn't aware that flag was needed. Appreciate it, and maybe this thread will help someone else at least :)
Hello! Thanks so much for your work on this project - it's incredible and a complete necessity.
I often use dreambooth to train and then extra LoRAs from the trained models afterward. To do that I use your extra_lora_from_models.py script. I noticed months back that it had stopped working properly for me where generated LoRA wouldn't make any changed when trigger words were used. So at that point I rolled back and ended up keeping the script dated 2023-08-22. I recently recreated my full training folder and w/ that pulled the latest version of the script. As far as I can tell this issue still persists.
Here is a console log below which is an attempted extra of a LoRA from an SVCD checkpoint 1st w/ the latest version and after w/ the 2023-08-22 version. I noticed the new version says, "Text encoder is same. Extract U-Net only." while the older version that works for me says, " Text encoder is different. 0.0032296180725097656 > 0.0001"
I hope you can give the current code a look to make sure nothing is improper.
Thanks!!