Skip to content

Question on the training processo of a Diffusion Model #6

@danielemolino

Description

@danielemolino

Hi Sir, I'm working on a LDM for my thesis and your video was very helpful in figuring out how the DDPM works. I only have a doubt in the training process, right now I'm:

  1. Sample a Batch of images and related caption
  2. Pass the images trough the Encoder of che diffusion model (to obtain the latent) and the caption trough the clip encoder
  3. Sample a random T and add noise to the latent with the scheduler
  4. Pass the latent in the Unet obtaining the predicted noise
  5. Calculate the loss between real Noise and predicted Noise

My doubt is, is it all i have to do? During the training process i don't have to do all the steps during forward and reverse project, but i can only limit to the single t i randomly sample?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions