update
Browse filesFiles changed (2)
- app.py+4-1
- model_cards/article.md+1-1
18 unmodified lines192021222324222526272818 unmodified lines
def run_inference(model_type: str, prompt: str):
if prompt == "": config = eval(f"{model_type}()") else: config = eval(f"{model_type}(prompt={prompt})") config = eval(f"{model_type}(prompt={prompt})") if config.modality != "token2image" and prompt != "": raise ValueError( f"{model_type} is an unconditional generative model, please remove prompt (not={prompt})"14 unmodified lines1516171819202133 unmodified lines5556575758596014 unmodified lines- `DDPMGenerator`- `LDMGenerator`- `ScoreSdeGenerator`
For details, see the [Diffusers docs](https://huggingface.co/docs/diffusers/index)
**Developers**: Various developers of above models, wrapped by Diffusers developers into [`diffusers`](https://github.com/huggingface/diffusers)33 unmodified linesModel card prototype inspired by [Mitchell et al. (2019)](https://dl.acm.org/doi/abs/10.1145/3287560.3287596?casa_token=XD4eHiE2cRUAAAAA:NL11gMa1hGPOUKTAbtXnbVQBDBbjxwcjGECF_i-WC_3g1aBgU1Hbz_f2b4kI_m1in-w__1ztGeHnwHs)
## CitationTBD, temporarily please cite:```bib@misc{von-platen-etal-2022-diffusers, author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Thomas Wolf},app.py+4-1
model_cards/article.md+1-1