Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: creativeml-openrail-m
|
| 3 |
+
tags:
|
| 4 |
+
- stable-diffusion
|
| 5 |
+
- controlnet
|
| 6 |
+
- openpose
|
| 7 |
+
- inpainting
|
| 8 |
+
- qualcomm
|
| 9 |
+
- qnn
|
| 10 |
+
- npu
|
| 11 |
+
- on-device
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# AbsoluteReality OpenPose Control-Inpaint — QNN (Snapdragon NPU)
|
| 15 |
+
|
| 16 |
+
Pose-guided **inpainting** running entirely on a Snapdragon NPU. A 16-input UNet takes the
|
| 17 |
+
9-channel inpainting latent **and** 13 ControlNet residuals, so the model can be told both
|
| 18 |
+
*where* to paint and *what pose* to paint.
|
| 19 |
+
|
| 20 |
+
Measured on a Samsung S25 Ultra (SM8750, HTP v79), 512×512 / 20 steps:
|
| 21 |
+
|
| 22 |
+
| mode | time |
|
| 23 |
+
|---|---|
|
| 24 |
+
| pose-guided inpainting | **~6.0 s** |
|
| 25 |
+
| plain inpainting (no hint) | **~5.1 s** |
|
| 26 |
+
|
| 27 |
+
⭐ **One model, two modes.** Omit the control image and it is an ordinary 9-channel
|
| 28 |
+
inpainting model; the ControlNet branch is skipped entirely rather than run and multiplied
|
| 29 |
+
by zero.
|
| 30 |
+
|
| 31 |
+
## Contents
|
| 32 |
+
|
| 33 |
+
| file | what |
|
| 34 |
+
|---|---|
|
| 35 |
+
| `unet.bin` | 16-input, 9-channel control-UNet (latent 9ch + 12 down-block + 1 mid-block residual) |
|
| 36 |
+
| `controlnet.bin` | OpenPose ControlNet branch (4-channel latent + 512×512 hint → 13 residuals) |
|
| 37 |
+
| `vae_encoder.bin`, `vae_decoder.bin` | AbsoluteReality's own VAE — the encoder is required for inpainting |
|
| 38 |
+
| `clip_v2.mnn`, `pos_emb.bin`, `token_emb.bin`, `tokenizer.json` | text side (MNN, runs on CPU) |
|
| 39 |
+
|
| 40 |
+
Built with **QAIRT 2.49**, w8a16, per-channel weights, NHWC IO, `dsp_arch` v73 (`_8gen2`).
|
| 41 |
+
|
| 42 |
+
⚠ **A 2.49-built context declares an fp16 requirement.** Chips that lack it reject the model
|
| 43 |
+
at load. This build therefore targets 8 Gen 2 and newer parts that report fp16; it is not the
|
| 44 |
+
widest-compatibility build.
|
| 45 |
+
|
| 46 |
+
## Inputs
|
| 47 |
+
|
| 48 |
+
Requires an **image** and a **mask** (white = repaint). The control image is **optional**;
|
| 49 |
+
when supplied it must be an OpenPose skeleton rendering at 512×512, *not* a photo — no pose
|
| 50 |
+
detection happens on device.
|
| 51 |
+
|
| 52 |
+
## Provenance and licences
|
| 53 |
+
|
| 54 |
+
- Base weights: **[Lykon/absolute-reality-1.6525-inpainting](https://huggingface.co/lykon-models/absolute-realism-1.6525-inpainting)** — CreativeML OpenRAIL-M. The licence travels with these weights.
|
| 55 |
+
- Control branch: **[lllyasviel/control_v11p_sd15_openpose](https://huggingface.co/lllyasviel/control_v11p_sd15_openpose)**. Credit to lllyasviel; that model's licence applies to the control branch.
|
| 56 |
+
- Conversion used the pipeline from **[xororz/local-dream](https://github.com/xororz/local-dream)** (CC BY-NC 4.0), whose C++ server also runs it.
|
| 57 |
+
|
| 58 |
+
These are conversions, not retrainings: no weights were fine-tuned, only exported and
|
| 59 |
+
quantized.
|