-
Team name: ChaosAI
-
Members:
- Molnár Levente - JGWFM2
- Vörös Asztrik - WYZJ90
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.
- 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
-
DDPM: https://huggingface.co/docs/diffusers/api/pipelines/ddpm
-
UNET: https://huggingface.co/docs/diffusers/v0.31.0/en/api/models/unet2d#diffusers.UNet2DModel
-
Schedulers: https://huggingface.co/docs/diffusers/using-diffusers/schedulers
-
Their Usage: https://huggingface.co/learn/diffusion-course/en/unit2/2
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
- Avoid computing metrics: set
Hit Run > Run All in the jupyter notebook
Visit for gradio: 127.0.0.1:8887
Change IN_LOCAL to 1 in .env file
Run main.ipynb in your IDE
Change IN_LOCAL to 0 in .env file
Run main.ipynb in Google Colab