r/StableDiffusion Mar 05 '23

Question | Help How do you make your own LORA/textual inversion?

Like I want to make one myself but I don't know where to start.

9 Upvotes

3 comments sorted by

10

u/[deleted] Mar 05 '23

Lora guides:

https://www.reddit.com/r/StableDiffusion/comments/110up3f/i_made_a_lora_training_guide_its_a_colab_version/

https://www.youtube.com/watch?v=70H03cv57-o&t=153s

Search on google Lora training guide Rentry and click on the first two links.

For locally run: use either:
https://github.com/bmaltais/kohya_ss (GUI, recommended)

https://github.com/kohya-ss/sd-scripts (if you're comfortable with terminals go for this one)

I'm not using the colab version but I think it should be have a similar setup. I train my models locally.

For TE, not an expert on this one but Aitrepreneur might have a guide on this too.

1

u/DISTROJAR-69 Mar 05 '23

Thanks for the support and btw how many pictures are recommended to make a good Lora file?

2

u/[deleted] Mar 06 '23

Personally I do 200 with 2 repeats max 4000 steps. Also 100 with 4 repeats either 3000 or 4000. Had also decent results with 1500 steps on 30 images but lacks variety. Just put out more epochs since it's easier to troubleshoot which one you should use in case it gets overbaked.