Matt Rickard

Share this post

Fine-tuning Stable Diffusion XL with Personal Photos

blog.matt-rickard.com

Discover more from Matt Rickard

Thoughts on engineering, startups, and AI.
Continue reading
Sign in

Fine-tuning Stable Diffusion XL with Personal Photos

Sep 11, 2023
11
Share this post

Fine-tuning Stable Diffusion XL with Personal Photos

blog.matt-rickard.com
2
Share

When the initial Stable Diffusion models first came out, I fine-tuned them to add myself as a new concept. I did this by using the DreamBooth algorithm via fine-tuning. It only took about 5-10 images of myself. The results were pretty good (learning a new token, “mattrickard” on Stable Diffusion v1.5)

07681c2e-0212-40d7-b80e-521c9cf24f51.jpeg
609EC921-998C-4165-8F6C-844D13CBB601.jpeg

This time, I upgraded the model (SDXL) and upgraded the method (LoRA). Instead of fine-tuning, I was left with a relatively small (about 20 MB) of model weight deltas. I ended up doing LoRA applied to Dreambooth. There’s two methods I haven’t tried yet — textual inversion and pivotal tuning. The former adds a new token embedding and learns it via gradient descent. Pivotal tuning combines both textual inversion (training a new token) with Dreambooth LoRa (training a concept).

You can see how the models have improved in just a few months.

custom 103.png
Wadim Kashin 001.png
Even Mehl Amundsen 001.png
_Style__Cyberpunk 001.png
August Sander 001.png
11
Share this post

Fine-tuning Stable Diffusion XL with Personal Photos

blog.matt-rickard.com
2
Share
Previous
Next
2 Comments
Share this discussion

Fine-tuning Stable Diffusion XL with Personal Photos

blog.matt-rickard.com
Donnahornik59@gmail.com
Sep 11Liked by Matt Rickard

Super cool. You look like your Grandpa in the last photo.

Expand full comment
Reply
Share
Andrew Smith
Writes Goatfury Writes
Sep 11Liked by Matt Rickard

Pretty sharp! Thanks for keeping us posted on all this stuff.

Expand full comment
Reply
Share
Top
New
Community

No posts

Ready for more?

© 2023 Matt Rickard
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing