## 1. `diffusers` as a central modular diffusion and sampler library
`diffusers` should be more modularized than `transformers` so that parts of it can be easily used in other libraries.
It could become a central place for all kinds of models, samplers, training utils and processors required when using diffusion models in audio, vision, ...
One should be able to save both models and samplers as well as load them from the Hub.
## 2. `diffusers` as a collection of most import Diffusion models (GLIDE, Dalle, ...)
`models` directory in repository hosts complete diffusion training code & pipelines. Easily load & saveable from the Hub. Will be possible to use just from pip `diffusers` version:
# save and load with 0 extra code (handled by general `DiffusionPipeline` class)
# will also be possible to do so from the Hub
withtempfile.TemporaryDirectory()astmpdirname:
ddpm.save_pretrained(tmpdirname)
print("Model saved")
ddpm_new=DDPM.from_pretrained(tmpdirname)
print("Model loaded")
print(ddpm_new)
```
## Library structure:
## Library structure:
```
```
...
@@ -62,33 +122,3 @@
...
@@ -62,33 +122,3 @@
├── tests
├── tests
│ └── test_modeling_utils.py
│ └── test_modeling_utils.py
```
```
## 1. `diffusers` as a central modular diffusion and sampler library
`diffusers` should be more modularized than `transformers` so that parts of it can be easily used in other libraries.
It could become a central place for all kinds of models, samplers, training utils and processors required when using diffusion models in audio, vision, ...
One should be able to save both models and samplers as well as load them from the Hub.