Skip to content

Avalon-467/style_diffusion_reproduction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StyleDiffusion Reproduction

Recreation of the Style Diffusion research paper from ICCV 2023. Paper link.

Setup Instructions

  1. Clone the repository
git clone https://github.com/Ardacandra/style_diffusion_reproduction.git
cd style_diffusion_reproduction
  1. Create environment
conda create -n style_diffusion_reproduction python=3.9
conda activate style_diffusion_reproduction
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
pip install -r requirements.txt
pip install git+https://github.com/openai/CLIP.git
  1. Prepare dataset
python src/prepare_dataset.py --n_content 100 --size 256
  1. Prepare pre-trained model from OpenAI Guided Diffusion
git clone https://github.com/openai/guided-diffusion.git
cd guided-diffusion
pip install -e .
  1. Download model checkpoints
cd models/checkpoints
wget https://openaipublic.blob.core.windows.net/diffusion/jul-2021/256x256_diffusion_uncond.pt

How to Run

  1. Set up the run configurations in the configs/ folder

  2. Run main.py

python main.py --config configs/default.yaml

About

Recreation of the Style Diffusion research paper from ICCV 2023.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%