x1/anima_pixel_decoder_rgba_preview: RGB and alpha in one readout (preview)
Browse files- .gitattributes +1 -0
- README.md +29 -2
- samples/rgba_preview.png +3 -0
- x1/anima_pixel_decoder_rgba_preview.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -52,3 +52,4 @@ samples/x2_mono_vae_crop.png filter=lfs diff=lfs merge=lfs -text
|
|
| 52 |
samples/sharp_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
samples/base_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 54 |
samples/decoder_sharp_compare.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 52 |
samples/sharp_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
samples/base_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 54 |
samples/decoder_sharp_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
samples/rgba_preview.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -29,6 +29,7 @@ writes RGB pixels directly, in place of the VAE decode. The head and its trainin
|
|
| 29 |
|---|---|---|
|
| 30 |
| `x1/anima_pixel_decoder_base.safetensors` | ×1 | the current head (2026-11-23), trained with a DINOv3 feature term |
|
| 31 |
| `x1/anima_pixel_decoder_sharp.safetensors` | ×1 | the base with a GAN finish (2026-11-23): sharper detail, further from the VAE decode |
|
|
|
|
| 32 |
| `x2/anima_pixel_head_x2.safetensors` | ×2 | decode + 2× upscale in one readout |
|
| 33 |
| `x2/anima_pixel_head_x2_v2.safetensors` | ×2 | a ×2 GAN finish on a later ×1 base (run `x2llgf512_1122_2209`) |
|
| 34 |
| `multi/` | | reserved |
|
|
@@ -42,7 +43,8 @@ Files moved into `x1/` and `x2/` on 2026-11-23; links to the old root paths no l
|
|
| 42 |
node pack (ComfyUI Manager: "Anima Pixel Decoder"). Put the file (no folder) in `models/pixel_heads/`,
|
| 43 |
add **Anima Pixel Head Tap** on the MODEL before the KSampler (stock or Spectrum) and decode
|
| 44 |
the sampler's LATENT with **Anima Pixel Decode** instead of VAE Decode. The file decides the
|
| 45 |
-
scale: ×1 for the `x1/` files, ×2 for the `x2/` files (node 0.3.1 or later).
|
|
|
|
| 46 |
Run the DiT on the fp32 stream (Anima Adapter Loader, `stream = fp32`).
|
| 47 |
- [anima_lora](https://github.com/sorryhyun/anima_lora): `inference.py --decoder pixel_head`
|
| 48 |
(`make test PIXEL=1`, `make test-turbo PIXEL=1`; ×2: `make test PIXEL=1 PIXEL_SCALE=2`); the
|
|
@@ -111,6 +113,30 @@ The GAN term was trained at the base points only. At the turbo point the head wa
|
|
| 111 |
the regression loss alone, so on the turbo it decodes like the base file. On manga pages, a faint
|
| 112 |
regular pattern can appear in screentone areas. For manga, compare both files.
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
## Compatibility
|
| 115 |
|
| 116 |
Read the head only where it was trained:
|
|
@@ -121,7 +147,8 @@ Read the head only where it was trained:
|
|
| 121 |
[anima-turbo-4step](https://huggingface.co/sorryhyun/anima-turbo-4step), Euler 4 steps,
|
| 122 |
shift 3, CFG 1 (last-step σ 0.5). Trained on `anima_turbo_4step_v4_longer.safetensors`.
|
| 123 |
|
| 124 |
-
The ×2
|
|
|
|
| 125 |
|
| 126 |
|
| 127 |
## Benchmark
|
|
|
|
| 29 |
|---|---|---|
|
| 30 |
| `x1/anima_pixel_decoder_base.safetensors` | ×1 | the current head (2026-11-23), trained with a DINOv3 feature term |
|
| 31 |
| `x1/anima_pixel_decoder_sharp.safetensors` | ×1 | the base with a GAN finish (2026-11-23): sharper detail, further from the VAE decode |
|
| 32 |
+
| `x1/anima_pixel_decoder_rgba_preview.safetensors` | ×1, RGBA | preview (2026-11-24): RGB and alpha in one readout, a transparent PNG from a white-background render |
|
| 33 |
| `x2/anima_pixel_head_x2.safetensors` | ×2 | decode + 2× upscale in one readout |
|
| 34 |
| `x2/anima_pixel_head_x2_v2.safetensors` | ×2 | a ×2 GAN finish on a later ×1 base (run `x2llgf512_1122_2209`) |
|
| 35 |
| `multi/` | | reserved |
|
|
|
|
| 43 |
node pack (ComfyUI Manager: "Anima Pixel Decoder"). Put the file (no folder) in `models/pixel_heads/`,
|
| 44 |
add **Anima Pixel Head Tap** on the MODEL before the KSampler (stock or Spectrum) and decode
|
| 45 |
the sampler's LATENT with **Anima Pixel Decode** instead of VAE Decode. The file decides the
|
| 46 |
+
scale: ×1 for the `x1/` files, ×2 for the `x2/` files (node 0.3.1 or later). The RGBA file
|
| 47 |
+
needs node 0.4.0 or later.
|
| 48 |
Run the DiT on the fp32 stream (Anima Adapter Loader, `stream = fp32`).
|
| 49 |
- [anima_lora](https://github.com/sorryhyun/anima_lora): `inference.py --decoder pixel_head`
|
| 50 |
(`make test PIXEL=1`, `make test-turbo PIXEL=1`; ×2: `make test PIXEL=1 PIXEL_SCALE=2`); the
|
|
|
|
| 113 |
the regression loss alone, so on the turbo it decodes like the base file. On manga pages, a faint
|
| 114 |
regular pattern can appear in screentone areas. For manga, compare both files.
|
| 115 |
|
| 116 |
+
## RGBA (preview)
|
| 117 |
+
|
| 118 |
+
`x1/anima_pixel_decoder_rgba_preview.safetensors` is `anima_pixel_decoder_base` with a fourth
|
| 119 |
+
output channel, trained on for 4,000 rollouts: one readout writes the colour and the alpha, and
|
| 120 |
+
the render is saved as a transparent PNG. No second head, no background-removal pass.
|
| 121 |
+
|
| 122 |
+
- End the prompt with `white background`. The head was trained on character cutouts laid on
|
| 123 |
+
white and light simple backgrounds, at the base points only.
|
| 124 |
+
- ComfyUI: pick the file in **Anima Pixel Decode**; the IMAGE has four channels and **Save Image**
|
| 125 |
+
writes the transparent PNG. A node that expects three channels needs **Split Image with Alpha**
|
| 126 |
+
first.
|
| 127 |
+
- anima_lora: `make test PIXEL=1 PIXEL_HEAD=models/pixel_heads/anima_pixel_decoder_rgba_preview.safetensors`.
|
| 128 |
+
- The colour is straight (not premultiplied).
|
| 129 |
+
|
| 130 |
+
Base DiT, Euler 28 steps, shift 3, CFG 4, seeds 7 and 8, on a checker. Prompts the head was not
|
| 131 |
+
tuned on: a wizard, a robot, a horse, a birdcage, a jellyfish, a dandelion.
|
| 132 |
+
|
| 133 |
+

|
| 134 |
+
|
| 135 |
+
What the preview does not do yet: background enclosed by thin structure (between a cage's bars, a
|
| 136 |
+
wheel's spokes) comes out as 8-px blocks of mixed alpha, and translucent material (the
|
| 137 |
+
jellyfish's veil, glass) comes out mostly opaque. People, creatures and objects with a closed
|
| 138 |
+
outline split cleanly, hair strands included.
|
| 139 |
+
|
| 140 |
## Compatibility
|
| 141 |
|
| 142 |
Read the head only where it was trained:
|
|
|
|
| 147 |
[anima-turbo-4step](https://huggingface.co/sorryhyun/anima-turbo-4step), Euler 4 steps,
|
| 148 |
shift 3, CFG 1 (last-step σ 0.5). Trained on `anima_turbo_4step_v4_longer.safetensors`.
|
| 149 |
|
| 150 |
+
The ×2 files and the RGBA preview were trained at the base points only; on the turbo they decode
|
| 151 |
+
with a warning.
|
| 152 |
|
| 153 |
|
| 154 |
## Benchmark
|
samples/rgba_preview.png
ADDED
|
|
Git LFS Details
|
x1/anima_pixel_decoder_rgba_preview.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf96f04508eafda419d43d3053daffdf0e8cba640433e9d83031fa0f439366f8
|
| 3 |
+
size 93278864
|