Text-to-Image
Diffusers
ONNX
English
StableDiffusionPipeline
stable-diffusion
sd-1.5
hyper-sd
4-step
disney-style
Instructions to use Heliosoph/mo-di-hyper-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Heliosoph/mo-di-hyper-onnx with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Heliosoph/mo-di-hyper-onnx", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,60 @@
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
tags:
|
| 5 |
+
- stable-diffusion
|
| 6 |
+
- sd-1.5
|
| 7 |
+
- hyper-sd
|
| 8 |
+
- onnx
|
| 9 |
+
- text-to-image
|
| 10 |
+
- 4-step
|
| 11 |
+
- disney-style
|
| 12 |
+
base_model: nitrosocke/mo-di-diffusion
|
| 13 |
+
pipeline_tag: text-to-image
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
---
|
| 17 |
+
|
| 18 |
+
# Mo-Di Diffusion + Hyper-SD (4-step) — ONNX
|
| 19 |
+
|
| 20 |
+
ONNX export of [nitrosocke/mo-di-diffusion](https://huggingface.co/nitrosocke/mo-di-diffusion) with the [ByteDance/Hyper-SD](https://huggingface.co/ByteDance/Hyper-SD) 4-step LoRA fused into the UNet. SD 1.5 architecture, 512×512 native, Euler scheduler, CFG = 1, **4 steps**.
|
| 21 |
+
|
| 22 |
+
Mo-Di is nitrosocke's "modern Disney style" fine-tune — produces character art with the late-2010s Disney/Pixar look. Activator phrase commonly used upstream: `modern disney style`. Worth including in prompts for stronger style adherence.
|
| 23 |
+
|
| 24 |
+
Converted artifact. Training credit: nitrosocke (Mo-Di), ByteDance (Hyper-SD).
|
| 25 |
+
|
| 26 |
+
## What this repo contains
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
model_index.json
|
| 30 |
+
feature_extractor/
|
| 31 |
+
scheduler/
|
| 32 |
+
text_encoder/
|
| 33 |
+
tokenizer/
|
| 34 |
+
unet/ # Mo-Di UNet + Hyper-SD-15 4-step LoRA fused in
|
| 35 |
+
vae_decoder/
|
| 36 |
+
vae_encoder/
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## How it was produced
|
| 40 |
+
|
| 41 |
+
1. Load `nitrosocke/mo-di-diffusion` via `diffusers`.
|
| 42 |
+
2. Fuse `ByteDance/Hyper-SD/Hyper-SD15-4steps-lora.safetensors`.
|
| 43 |
+
3. `optimum-cli export onnx`.
|
| 44 |
+
|
| 45 |
+
Toolchain: `optimum 1.24.0`, `diffusers 0.31.0`, `transformers 4.45.2`, `torch 2.4.x` (CUDA 12.4). Conversion script: [`scripts/export-mo-di-hyper.ps1`](https://github.com/HeliosophLLC/DatumIngest/blob/main/scripts/export-mo-di-hyper.ps1).
|
| 46 |
+
|
| 47 |
+
## Inference notes
|
| 48 |
+
|
| 49 |
+
| Setting | Value |
|
| 50 |
+
|---|---|
|
| 51 |
+
| Scheduler | Euler |
|
| 52 |
+
| Steps | 4 |
|
| 53 |
+
| CFG / guidance scale | 1.0 |
|
| 54 |
+
| Negative prompt | Skip |
|
| 55 |
+
| Resolution | 512×512 native |
|
| 56 |
+
| Activator | Include `modern disney style` in prompts for stronger adherence |
|
| 57 |
+
|
| 58 |
+
## License
|
| 59 |
+
|
| 60 |
+
CreativeML OpenRAIL-M (SD 1.5 + Mo-Di + Hyper-SD). License files included. By using this model you accept those terms.
|