Reference:Datawhale tinydiffusion
Kaggle Implementation:#
Data Preparation#
- git clone to download tinydiffusion locally
- Download the cifar-10-python dataset to the datasets/ folder, maintaining the directory structure as datasets/cifar-10-batches-py.
- Package and upload to Kaggle dataset, named cifar-10-python.
Run#
- Create a new notebook, add the dataset cifar-10-python as input.
- Run the default code
- Configure the environment
- Copy the dataset to the output path
- Create a path to store images generated every 10 epochs
- Enter the output path
- Process the data
- Print the structure
- Add noise to the images
- Train, here only training for 100 times, if you want to modify, you can change it in the command line
- View the images
Results#