Add Baikal LoopSR v2 x2 EMA weights and updated examples
Browse filesPublish EMA update 30000 with its architecture config and paired examples; retain LoopSR v1 and SwinFIR v31.
- Baikal_LoopSR_x2_v2.safetensors +3 -0
- README.md +46 -45
- examples/anime-details.png +2 -2
- examples/anime-loopsr-x2.png +2 -2
- examples/anime-overview.webp +2 -2
- examples/illustration-details.png +2 -2
- examples/illustration-loopsr-x2.png +2 -2
- examples/illustration-overview.webp +2 -2
- examples/metadata.json +2 -2
- loopsr_x2_v2_config.json +19 -0
Baikal_LoopSR_x2_v2.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9ec49141e58b9ba109f3dde7d408dfccabbae08c0ba8fb3545ba3017e95f643
|
| 3 |
+
size 20954228
|
README.md
CHANGED
|
@@ -1,45 +1,46 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
pipeline_tag: image-to-image
|
| 4 |
-
library_name: pytorch
|
| 5 |
-
tags: [super-resolution, image-restoration, anime, illustration, comfyui, transformer, loopsr, swinfir]
|
| 6 |
-
---
|
| 7 |
-
|
| 8 |
-
# Baikal Anime Upscaler
|
| 9 |
-
|
| 10 |
-
**x2 upscaling for anime and illustrations**, using Baikal LoopSR or SwinFIR v31.
|
| 11 |
-
|
| 12 |
-
[ComfyUI nodes](https://github.com/SnJake/ComfyUI-Baikal-Anime/tree/dev) · [Example workflow](https://github.com/SnJake/ComfyUI-Baikal-Anime/blob/dev/workflows/
|
| 13 |
-
|
| 14 |
-
| Model | Download |
|
| 15 |
-
|---|---|
|
| 16 |
-
| Baikal LoopSR x2 | [
|
| 17 |
-
| Baikal
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pipeline_tag: image-to-image
|
| 4 |
+
library_name: pytorch
|
| 5 |
+
tags: [super-resolution, image-restoration, anime, illustration, comfyui, transformer, loopsr, swinfir]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Baikal Anime Upscaler
|
| 9 |
+
|
| 10 |
+
**x2 upscaling for anime and illustrations**, using Baikal LoopSR v2, LoopSR v1 or SwinFIR v31.
|
| 11 |
+
|
| 12 |
+
[ComfyUI nodes](https://github.com/SnJake/ComfyUI-Baikal-Anime/tree/dev) · [Example workflow](https://github.com/SnJake/ComfyUI-Baikal-Anime/blob/dev/workflows/Baikal_LoopSR_x2_v2.json)
|
| 13 |
+
|
| 14 |
+
| Model | Download |
|
| 15 |
+
|---|---|
|
| 16 |
+
| Baikal LoopSR v2 x2 | [Baikal_LoopSR_x2_v2.safetensors](https://huggingface.co/SnJake/Baikal-Anime-Upscaler/resolve/dev/Baikal_LoopSR_x2_v2.safetensors?download=true) |
|
| 17 |
+
| Baikal LoopSR v1 x2 | [Baikal_LoopSR_x2.safetensors](Baikal_LoopSR_x2.safetensors) |
|
| 18 |
+
| Baikal SwinFIR v31 | [Baikal_SwinFIR_Anime_x2_v31.safetensors](Baikal_SwinFIR_Anime_x2_v31.safetensors) |
|
| 19 |
+
|
| 20 |
+
## Examples
|
| 21 |
+
|
| 22 |
+
**Bicubic x2 → Baikal LoopSR v2 x2.** Same display size, no extra sharpening. V2: EMA step 30000, loops 4.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+
[Full input](examples/illustration-input.png) · [Full x2 result](examples/illustration-loopsr-x2.png)
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
[Full input](examples/anime-input.png) · [Full x2 result](examples/anime-loopsr-x2.png)
|
| 35 |
+
|
| 36 |
+
## ComfyUI
|
| 37 |
+
|
| 38 |
+
Install [ComfyUI-Baikal-Anime](https://github.com/SnJake/ComfyUI-Baikal-Anime/tree/dev), restart, and place weights in **`ComfyUI/models/anime_upscale/`**. The loader can also download them.
|
| 39 |
+
|
| 40 |
+
Category **`Baikal/Upscale`**: **Baikal Model Loader → Baikal Anime Upscale → Save Image**.
|
| 41 |
+
|
| 42 |
+
LoopSR supports **loops 1–4**. Default LR tile/overlap/halo: **256 / 32 / 96**. The custom loader also provides `UPSCALE_MODEL` for the standard upscaling node.
|
| 43 |
+
|
| 44 |
+
LoopSR adapts shared loops, XSA and deep supervision from [Looped Diffusion Transformer](https://arxiv.org/abs/2609.40305). [Technical notes](https://github.com/SnJake/ComfyUI-Baikal-Anime/blob/dev/docs/TRAINING.md).
|
| 45 |
+
|
| 46 |
+
MIT · [License](LICENSE.md)
|
examples/anime-details.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
examples/anime-loopsr-x2.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
examples/anime-overview.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
examples/illustration-details.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
examples/illustration-loopsr-x2.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
examples/illustration-overview.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
examples/metadata.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"model": "
|
| 3 |
"weights": "EMA",
|
| 4 |
-
"training_steps":
|
| 5 |
"baseline": "bicubic x2, not an HR reference",
|
| 6 |
"examples": [
|
| 7 |
{
|
|
|
|
| 1 |
{
|
| 2 |
+
"model": "Baikal_LoopSR_x2_v2.safetensors",
|
| 3 |
"weights": "EMA",
|
| 4 |
+
"training_steps": 30000,
|
| 5 |
"baseline": "bicubic x2, not an HR reference",
|
| 6 |
"examples": [
|
| 7 |
{
|
loopsr_x2_v2_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "Baikal_LoopSR",
|
| 3 |
+
"model_version": 2,
|
| 4 |
+
"model": {
|
| 5 |
+
"scale": 2,
|
| 6 |
+
"dim": 224,
|
| 7 |
+
"heads": 7,
|
| 8 |
+
"window": 8,
|
| 9 |
+
"pre_blocks": 3,
|
| 10 |
+
"loop_blocks": 4,
|
| 11 |
+
"post_blocks": 2,
|
| 12 |
+
"loops": 4,
|
| 13 |
+
"ffn_ratio": 2.0,
|
| 14 |
+
"attention": "xsa",
|
| 15 |
+
"checkpoint_blocks": false
|
| 16 |
+
},
|
| 17 |
+
"training_steps": 30000,
|
| 18 |
+
"weights": "EMA"
|
| 19 |
+
}
|