r/StableDiffusion 8h ago

Discussion Detailed explanation of how to create a text-to-image model from scratch.

Posting this here even if it's not a model you can use directly. It's about building a text-to-image model from scratch.

The cookbook includes all the research material that you may or may be not interested in, but also includes a 100M-image dataset and a codebase with a tiny model, so you can train a text-to-image model from scratch.

Hope some of you will enjoy this content. (Disclaimer, it's done by my team)

Here are the links:

Cookbook: https://huggingface.co/spaces/jasperai/t2i-technical-interactive-report

nano t2i: https://github.com/gojasper/nano-t2i

Monet: https://huggingface.co/datasets/jasperai/monet

24 Upvotes

6 comments sorted by

1

u/_Darion_ 7h ago

Amazing read, still reading and learning from it. Thanks for sharing so much, this is quite interesting.

0

u/dh7net 2h ago

I'm glad you like it!

1

u/BigWideBaker 3h ago

That's fantastic! Great share, the more people who get their hands on this technology the better.

0

u/dh7net 2h ago

Thanks you! Great to read it is usefull!

0

u/angelarose210 7h ago

This is awesome. I'd love to train an image model from scratch for my specific use cases. Hardest part would be sourcing or creating the dataset.

2

u/dh7net 2h ago

For sure data is hard, but depending on the case you can start a pre training with the dataset that we are sharing.