Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

asztrikx/bme-diffusion-model

Repository files navigation

Image generation with diffusion models

Team information

  • Team name: ChaosAI

  • Members:

    • Molnár Levente - JGWFM2
    • Vörös Asztrik - WYZJ90

Project information:

Description

Implement and train unconditional diffusion models, such as DDPM (Denoising Diffusion Probabilistic Model) or DDIM (Denoising Diffusion Implicit Model) for generating realistic images. Evaluate the capabilities of the models on two different datasets, such as CelebA and Flowers102.

Files

  • main.ipynb:
    • source code of the project
  • Dockerfile:
    • defines the container configuration
  • requirements.txt:
    • defines the container dependencies with fixed versions
  • start.sh:
    • converts Jupyter notebook to Python script when the container starts
  • docker-compose.yml:
    • mount external folder to container

Related works

Run instructions

Modify .env file:

WANDB_API_KEY=<KEY>
WANDB_USERNAME=<ENTITY>
IN_LOCAL=0

Important!: Get <KEY> and <ENTITY> from the moodle submission to be able to use pretrained models (we didn't want to expose our api key to everyone)

Then run: docker compose up

Visit: 127.0.0.1:1234

In jupyter notebook (main.ipynb):

  • For evaluation only: set eval_only = True
  • To train: set eval_only = False
  • For faster run speed:
    • Avoid computing metrics: set is_score_on = False
    • Avoid running visualization and analysis: set visualize_and_analyze = false
    • Avoid running celeba: set is_celeba_on = False

Hit Run > Run All in the jupyter notebook

Visit for gradio: 127.0.0.1:8887

Run instructions (for non docker usage)

Change IN_LOCAL to 1 in .env file Run main.ipynb in your IDE

Run instructions (for Google Colab, not indented for submission, but for weak GPU systems needed)

Change IN_LOCAL to 0 in .env file Run main.ipynb in Google Colab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors