Text-to-Image
Diffusers
ONNX
English
StableDiffusionPipeline
stable-diffusion
sd-1.5
hyper-sd
4-step
Instructions to use Heliosoph/absolute-reality-hyper-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Heliosoph/absolute-reality-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/absolute-reality-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,79 @@
|
|
| 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 |
+
base_model: Lykon/AbsoluteReality
|
| 12 |
+
pipeline_tag: text-to-image
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# AbsoluteReality + Hyper-SD (4-step) — ONNX
|
| 18 |
+
|
| 19 |
+
ONNX export of [Lykon/AbsoluteReality](https://huggingface.co/Lykon/AbsoluteReality) 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, designed to run with the Euler scheduler at CFG = 1 in **4 inference steps**.
|
| 20 |
+
|
| 21 |
+
This is a converted artifact, not a new model. All training credit belongs to Lykon (AbsoluteReality) and ByteDance (Hyper-SD).
|
| 22 |
+
|
| 23 |
+
## What this repo contains
|
| 24 |
+
|
| 25 |
+
A standard ONNX diffusers pipeline layout:
|
| 26 |
+
|
| 27 |
+
```
|
| 28 |
+
model_index.json
|
| 29 |
+
feature_extractor/
|
| 30 |
+
scheduler/
|
| 31 |
+
text_encoder/
|
| 32 |
+
tokenizer/
|
| 33 |
+
unet/ # AbsoluteReality UNet + Hyper-SD-15 4-step LoRA fused in
|
| 34 |
+
vae_decoder/
|
| 35 |
+
vae_encoder/
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
`unet/model.onnx` is paired with `unet/model.onnx_data` (external-weights file). Both must be downloaded.
|
| 39 |
+
|
| 40 |
+
## How it was produced
|
| 41 |
+
|
| 42 |
+
1. Load `Lykon/AbsoluteReality` via `diffusers` (uses its bundled VAE — no separate VAE pairing needed).
|
| 43 |
+
2. Load `ByteDance/Hyper-SD/Hyper-SD15-4steps-lora.safetensors` via `peft` and call `fuse_lora()` on the UNet.
|
| 44 |
+
3. Save the fused pipeline to a temp directory.
|
| 45 |
+
4. `optimum-cli export onnx --model <temp> <output>`.
|
| 46 |
+
|
| 47 |
+
Toolchain: `optimum 1.24.0`, `diffusers 0.31.0`, `transformers 4.45.2`, `torch 2.4.x` (CUDA 12.4), `peft` latest. Full conversion script: [`scripts/export-absolute-reality-hyper.ps1`](https://github.com/[YOUR_GH_ORG]/DatumIngest/blob/main/scripts/export-absolute-reality-hyper.ps1) in the DatumIngest repo.
|
| 48 |
+
|
| 49 |
+
## Inference notes
|
| 50 |
+
|
| 51 |
+
| Setting | Value |
|
| 52 |
+
|---|---|
|
| 53 |
+
| Scheduler | Euler (sample/x0 prediction is **not** required — 4-step Hyper is epsilon) |
|
| 54 |
+
| Steps | 4 |
|
| 55 |
+
| CFG / guidance scale | 1.0 (no classifier-free guidance) |
|
| 56 |
+
| Negative prompt | Skip — CFG = 1 ignores it |
|
| 57 |
+
| Resolution | 512×512 native (768×768 works, smaller resolutions degrade fast) |
|
| 58 |
+
|
| 59 |
+
## License
|
| 60 |
+
|
| 61 |
+
This export inherits **CreativeML OpenRAIL-M** from the base SD 1.5 lineage and AbsoluteReality. The Hyper-SD LoRA also ships under OpenRAIL-M (ByteDance). Both `LICENSE-*.md` files are included in this repo and travel with redistribution. By using this model you accept those terms — see the included license files for acceptable-use clauses.
|
| 62 |
+
|
| 63 |
+
## Citation
|
| 64 |
+
|
| 65 |
+
If you use this in academic work, cite both the base model and the distillation method:
|
| 66 |
+
|
| 67 |
+
```bibtex
|
| 68 |
+
@misc{lykon-absolutereality,
|
| 69 |
+
author = {Lykon},
|
| 70 |
+
title = {AbsoluteReality},
|
| 71 |
+
howpublished = {\url{https://huggingface.co/Lykon/AbsoluteReality}}
|
| 72 |
+
}
|
| 73 |
+
@article{ren2024hypersd,
|
| 74 |
+
title = {Hyper-SD: Trajectory Segmented Consistency Model for Efficient Image Synthesis},
|
| 75 |
+
author = {Ren, Yuxi and others},
|
| 76 |
+
journal = {arXiv preprint arXiv:2404.13686},
|
| 77 |
+
year = {2024}
|
| 78 |
+
}
|
| 79 |
+
```
|