Coder Social home page Coder Social logo

diffusion_distillation's Introduction

diffusion_distillation

TL;DR:

Simply run

bash run.sh

Env

conda env create -f dd.yml

Train

  1. Adjusting training profiles: diffusion_distillation/config/mnist_base.py
  2. Run: diffusion_distillation.ipynb, The output checkpoint will be saved in /tmp/flax_ckpt/checkpoint/ directory.
  3. Copy the checkpoint to a safe folder, as the /tmp folder will be case on system reboot.

Sampling

  1. Adjusting sampling profiles: diffusion_distillation/config/mnist_distill.py
  2. Run the following code to generate images:
python sample_origin.py --num_imgs 1024 --batchsize 64 --startbatch 0 --db_path data/mnist_origin_debug --ckpt_path /path/to/ckpt
  • db_path means the output dataset, which will be used in DSNO-pytorch
  • num_imgs means the num of images to be generated

diffusion_distillation's People

Contributors

devzhk avatar javazeroo avatar weilinie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.