Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy project to do image generation on a low budget GPU (<200h GPU per run)

MatchingFlowExp

Repo for experiences around matching flow / generative modelling with imagenet

This setup use two things :

Exemples images

Example of generated images at intermediate training (300k steps) :

examples

This is using the DiT B-4 (medium) model

Another image using DiT L-4 (longer training) :

alt text (it's pizza !)

Training loss curve :

alt text

Some comments here :

  • Some spikes in the training loss are due to the fact that there some images that are only in black and white (anomalies ...) To be remove

  • We have less proper performance than the DiT paper (I discover that every parameters is important ...)

  • AutoEncoder matter (vae vs vae sdxl), learning rate matter, architecture (B vs L) obviously matter, dataset matter, sampling technics matter etc

TODO to improve the performances :

  • Making the inference sampling with other scheme that euler (done)

  • Training with classifier-free guidance for improve inference performance.

Sampling with classifier-free guidance really seems to improve sampling quality

  • Time sampling should be done as in Stable diffusion 3 with lognormal proba (v3)

With this setup we obtain better sampling quality :

alt text

alt text

(B-4 model 150m parameters)

  • Try optimal transport setup

  • We should add EMA to improve sampling quality

  • We should use muP scaling law to make the training optimal at higher dimension

  • Use torch.compile to accelerate training (I was told it's 10% time improvment)

About

Repo for experiences around matching flow / generative modelling with imagenet

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages