Skip to content

MoutetMaxime/classifier-free-diffusion-guidance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classifier-Free Guidance Diffusion

This repository contains the Classifier-Free Guidance Diffusion project, developed as part of the Generative Models course taught by Alain Durmus at École Polytechnique. This project explores and implements concepts from the paper "Classifier-Free Diffusion Guidance", which introduces innovative methods to guide diffusion models effectively during sampling.


📚 Project Overview

The primary objective of this project is to deeply understand the Classifier-Free Guidance mechanism to simplify diffusion pipelines and improve the quality of generated results. This approach guides diffusion models without requiring an external classifier, making the process more flexible and efficient.


⚙️ Project Content

  1. Paper Review:

    • Summary and explanation of key concepts.
    • Analysis of the theoretical implications for generative modeling.
  2. Implementation:

    • Development of a guidance mechanism for diffusion models without a classifier.
    • Training and evaluation scripts for the model.
  3. Experiments:

    • Tests to evaluate the quality of samples generated using the guidance mechanism.
    • Comparison with other diffusion guidance techniques.
  4. Results:

    • Visualizations and metrics demonstrating the impact of Classifier-Free Guidance.
    • Discussion of the advantages and limitations of this approach.

🚀 Installation and Usage

Requirements

  • Python 3.8+
  • PyTorch
  • Additional dependencies listed in requirements.txt

Installation

git clone https://github.com/MoutetMaxime/classifier-free-guidance-diffusion.git
cd classifier-free-guidance-diffusion
pip install -r requirements.txt

Running the Code

  • To train the model, use the command:

    python train.py
  • To generate samples with guidance, use the command:

    python sample.py --guidance-scale <value>

📖 References


🙌 Acknowledgments

Special thanks to Alain Durmus for his guidance throughout the Generative Models course.

Feel free to explore this repository and reach out for any questions or collaborations! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages