MCPcopy
hub / github.com/hojonathanho/diffusion

github.com/hojonathanho/diffusion @main sqlite

repository ↗ · DeepWiki ↗
167 symbols 395 edges 17 files 39 documented · 23%
README

Denoising Diffusion Probabilistic Models

Jonathan Ho, Ajay Jain, Pieter Abbeel

Paper: https://arxiv.org/abs/2006.11239

Website: https://hojonathanho.github.io/diffusion

Samples generated by our model

Experiments run on Google Cloud TPU v3-8. Requires TensorFlow 1.15 and Python 3.5, and these dependencies for CPU instances (see requirements.txt):

pip3 install fire
pip3 install scipy
pip3 install pillow
pip3 install tensorflow-probability==0.8
pip3 install tensorflow-gan==0.0.0.dev0
pip3 install tensorflow-datasets==2.1.0

The training and evaluation scripts are in the scripts/ subdirectory. The commands to run training and evaluation are in comments at the top of the scripts. Data is stored in GCS buckets. The scripts are written to assume that the bucket names are of the form gs://mybucketprefix-us-central1; i.e. some prefix followed by the region. The prefix should be passed into the scripts using the --bucket_name_prefix flag.

Models and samples can be found at: https://www.dropbox.com/sh/pm6tn31da21yrx4/AABWKZnBzIROmDjGxpB6vn6Ja

Citation

If you find our work relevant to your research, please cite:

@article{ho2020denoising,
    title={Denoising Diffusion Probabilistic Models},
    author={Jonathan Ho and Ajay Jain and Pieter Abbeel},
    year={2020},
    journal={arXiv preprint arxiv:2006.11239}
}

Core symbols most depended-on inside this repo

_extract
called by 15
diffusion_tf/diffusion_utils_2.py
_extract
called by 11
diffusion_tf/diffusion_utils.py
run
called by 10
diffusion_tf/tpu_utils/tpu_utils.py
nonlinearity
called by 5
diffusion_tf/models/unet.py
scalar
called by 5
diffusion_tf/tpu_utils/tpu_summaries.py
distributed
called by 5
diffusion_tf/tpu_utils/tpu_utils.py
q_posterior_mean_variance
called by 4
diffusion_tf/diffusion_utils_2.py
get_beta_schedule
called by 4
diffusion_tf/diffusion_utils.py

Shape

Method 91
Function 63
Class 13

Languages

Python100%

Modules by API surface

diffusion_tf/tpu_utils/tpu_utils.py25 symbols
diffusion_tf/diffusion_utils_2.py20 symbols
diffusion_tf/utils.py19 symbols
diffusion_tf/tpu_utils/datasets.py17 symbols
diffusion_tf/diffusion_utils.py17 symbols
diffusion_tf/nn.py12 symbols
scripts/run_cifar.py11 symbols
diffusion_tf/tpu_utils/simple_eval_worker.py10 symbols
scripts/run_celebahq.py9 symbols
scripts/run_lsun.py7 symbols
diffusion_tf/tpu_utils/classifier_metrics_numpy.py7 symbols
diffusion_tf/models/unet.py7 symbols

Dependencies from manifests, versioned

Jinja22.11.1 · 1×
Keras-Applications1.0.8 · 1×
Keras-Preprocessing1.1.0 · 1×
Markdown3.2.1 · 1×
MarkupSafe1.1.1 · 1×
Pillow7.0.0 · 1×
PyYAML5.3 · 1×
Pygments2.5.2 · 1×
Send2Trash1.5.0 · 1×
Werkzeug1.0.0 · 1×
absl-py0.9.0 · 1×
appdirs1.4.3 · 1×

For agents

$ claude mcp add diffusion \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact