Coder Social home page Coder Social logo

Comments (3)

hkproj avatar hkproj commented on June 8, 2024 1

Hi! I don't have any immediate plan to write the training code, especially because this code is meant for learning the model and not to be used in production. If you'd like to train the model for fine-tuning or for production, I highly recommend using Hugging Face.

If you want to learn how training works for Stable Diffusion, then, given that we are using the DDPM formulation in my video, you only need to train the using the Algorithm described in my video on Diffusion Models, in which I also provide the code for the training algorithm. The implementation of that video can be found in my repository about the DDPM paper.

The only difference is that you also need to provide the time step and the caption of the image you're training the model upon, since they're both inputs for the UNet.

But as I've said before, for training a model from scratch, I highly recommend using open source libraries like Hugging Face, because it also takes into consideration all the data augmentation needed for the model. Be aware that to train a working Stable Diffusion from scratch that can generate meaningful outputs, it needs millions of images, which may take forever if you're using your personal computer/laptop.

from pytorch-stable-diffusion.

TWang1017 avatar TWang1017 commented on June 8, 2024

yesss, appreciate that if anyone can give a simple training code

from pytorch-stable-diffusion.

Inkyl avatar Inkyl commented on June 8, 2024

I'm also looking forward to finding a training code from scratch @hkproj

from pytorch-stable-diffusion.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.