File size: 9,653 Bytes
2be9145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37d12e6
fd3bf9a
cc3efe6
4d93303
2be9145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
base_model: ByteDance-Seed/SeedVR2-3B
base_model_relation: quantized
license: apache-2.0
pipeline_tag: image-to-video
library_name: gguf
tags:
- gguf
- moonbox
- seedvr2
- video-super-resolution
- video-restoration
- stable-diffusion.cpp
---

# SeedVR2 GGUF

GGUF builds of [SeedVR2](https://huggingface.co/ByteDance-Seed/SeedVR2-3B), made by Moonbox for on-device use. Each precision is one file at the root of
this repository; pick one by the memory you have. Only the model's own weights are converted: the other parts of the
pipeline (text encoder, VAE, tokenizer) come from the original repository unless the section below says otherwise.

## Files

The last column is how far each file is from the original BF16 weights: the relative RMS error of its dequantized
weights, averaged over all parameters. Image-quality scores against BF16 outputs are
added as each precision passes the image eval.

| Precision | File | Size | sha256 | Checked against BF16 |
|---|---|---|---|---|
| F16 | [`seedvr2-F16.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-F16.gguf) | 6.78 GB | `2e573ed10398` | the fp16 repack as is; the reference for the PSNR below; 24.9 / 21.4 dB from the original's frames (colour correction, own noise) |
| Q8_0 | [`seedvr2-Q8_0.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q8_0.gguf) | 3.62 GB | `b05a916d3c17` | PSNR vs F16 43.3 / 40.3 dB mean, 41.2 / 39.6 worst frame (example0 / example1) |
| Q6_K | [`seedvr2-Q6_K.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q6_K.gguf) | 2.80 GB | `437c0f16be0f` | PSNR vs F16 37.9 / 34.5 dB mean, 36.3 / 33.5 worst |
| Q5_K | [`seedvr2-Q5_K.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q5_K.gguf) | 2.35 GB | `f99ead496f5b` | experimental: PSNR vs F16 33.4 / 29.8 dB mean, 32.1 / 28.8 worst (bar 30 on every frame) |
| Q4_K | [`seedvr2-Q4_K.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q4_K.gguf) | 1.93 GB | `e0fe9861eef8` | experimental: PSNR vs F16 28.8 / 25.5 dB mean, 27.9 / 24.7 worst |

## How to run

These files hold SeedVR2-3B's diffusion transformer (a NaDiT, one step) for
[stable-diffusion.cpp](https://github.com/leejet/stable-diffusion.cpp)'s video upscaling. Take the VAE,
`vae/seedvr2_ema_vae_fp16.safetensors`, from [Comfy-Org/SeedVR2](https://huggingface.co/Comfy-Org/SeedVR2). Then:

```sh
sd-cli -M vid_upscale --diffusion-model seedvr2-Q8_0.gguf --vae seedvr2_ema_vae_fp16.safetensors \
    --input-frames frames --upscale-factor 2 --vsr-temporal-chunk-size 5 -s 42 -o restored.avi
```

stable-diffusion.cpp's `docs/models/seedvr2.md` describes the options.

**How these were made.** The source is Comfy-Org's fp16 repack of ByteDance-Seed's `seedvr2_ema_3b.pth`, with the tensor
names stable-diffusion.cpp loads. It was converted with stable-diffusion.cpp's own converter (`sd-cli -M convert
--type`, master-532d2c1):
- **F16:** the repack as it is.
- **Quantizations:** Q8_0, Q6_K, and pure Q5_K and Q4_K, with every weight matrix in that one type. llama-quantize's
  _M mixes don't exist for this architecture, so these files are named for what they hold.

**Benchmark.**
- **Clips:** two of 17 frames (384 x 384 and 512 x 288), the low-res frames already resized to the output size.
- **Run:** upscale factor 1, seed 666, temporal chunks of 5, stable-diffusion.cpp on CUDA (RTX 3080 Laptop).
- **Score:** PSNR of every frame against the F16 file's output.
- **Pass mark:** at least 30 dB on every frame. Q5_K and Q4_K fall below it, so they are marked experimental.

Every file is also about 24.8 / 21.4 dB from the frames of the original repository's script, and F16 is the same.
The quantization isn't the cause: stable-diffusion.cpp keeps the input's colours, which the repository's script
(without its colour fix) does not, and it draws its own noise.

## How these were made

From [SeedVR2](https://huggingface.co/ByteDance-Seed/SeedVR2-3B) at revision `37255ff8cc`: the original BF16 weights converted to GGUF F16 / BF16, then
quantized with llama.cpp's `llama-quantize`. Every file was checked against the original before upload; the
`sha256` column above is what the files must hash to.

## License

Apache-2.0. These files are a derivative of the original model and carry its license: it is copied in this
repository, and it governs your use of these files. The original model card follows unchanged.

---

# Original model card

<div align="center">
  <img src="assets/seedvr_logo.png" alt="SeedVR" width="400"/>
</div>


# SeedVR2: One-Step Video Restoration via Diffusion Adversarial Post-Training
> [Jianyi Wang](https://iceclear.github.io), [Shanchuan Lin](https://scholar.google.com/citations?user=EDWUw7gAAAAJ&hl=en), [Zhijie Lin](https://scholar.google.com/citations?user=xXMj6_EAAAAJ&hl=en), [Yuxi Ren](https://scholar.google.com.hk/citations?user=C_6JH-IAAAAJ&hl=en), [Meng Wei](https://openreview.net/profile?id=~Meng_Wei11), [Zongsheng Yue](https://zsyoaoa.github.io/), [Shangchen Zhou](https://shangchenzhou.com/), [Hao Chen](https://haochen-rye.github.io/), [Yang Zhao](https://scholar.google.com/citations?user=uPmTOHAAAAAJ&hl=en), [Ceyuan Yang](https://ceyuan.me/), [Xuefeng Xiao](https://scholar.google.com/citations?user=CVkM9TQAAAAJ&hl=en), [Chen Change Loy](https://www.mmlab-ntu.com/person/ccloy/index.html), [Lu Jiang](http://www.lujiang.info/)

<p align="center">
  <a href="https://iceclear.github.io/projects/seedvr2/">
    <img
      src="https://img.shields.io/badge/SeedVR2-Website-0A66C2?logo=safari&logoColor=white"
      alt="SeedVR Website"
    />
  </a>
  <a href="http://arxiv.org/abs/2506.05301">
    <img
      src="https://img.shields.io/badge/SeedVR2-Paper-red?logo=arxiv&logoColor=red"
      alt="SeedVR2 Paper on ArXiv"
    />
  </a>
  <a href="https://github.com/ByteDance-Seed/SeedVR">
            <img 
              alt="Github" src="https://img.shields.io/badge/SeedVR2-Codebase-536af5?color=536af5&logo=github"
              alt="SeedVR2 Codebase"
            />
  </a>
  <a href="https://huggingface.co/collections/ByteDance-Seed/seedvr-6849deeb461c4e425f3e6f9e">
    <img 
        src="https://img.shields.io/badge/SeedVR-Models-yellow?logo=huggingface&logoColor=yellow" 
        alt="SeedVR Models"
    />
  </a>
   <a href="https://huggingface.co/spaces/ByteDance-Seed/SeedVR2-3B">
    <img 
        src="https://img.shields.io/badge/SeedVR2-Space-orange?logo=huggingface&logoColor=yellow" 
        alt="SeedVR2 Space"
    />
  </a>
  <a href="https://www.youtube.com/watch?v=tM8J-WhuAH0" target='_blank'>
    <img 
        src="https://img.shields.io/badge/Demo%20Video-%23FF0000.svg?logo=YouTube&logoColor=white"
        alt="SeedVR2 Video Demo on YouTube"
    />
  </a>
</p>

>
> Recent advances in diffusion-based video restoration (VR) demonstrate significant improvement in visual quality, yet yield a prohibitive computational cost during inference. While several distillation-based approaches have exhibited the potential of one-step image restoration, extending existing approaches to VR remains challenging and underexplored, due to the limited generation ability and poor temporal consistency, particularly when dealing with high-resolution video in real-world settings. In this work, we propose a one-step diffusion-based VR model, termed as SeedVR2, which performs adversarial VR training against real data. To handle the challenging high-resolution VR within a single step, we introduce several enhancements to both model architecture and training procedures. Specifically, an adaptive window attention mechanism is proposed, where the window size is dynamically adjusted to fit the output resolutions, avoiding window inconsistency observed under high-resolution VR using window attention with a predefined window size. To stabilize and improve the adversarial post-training towards VR, we further verify the effectiveness of a series of losses, including a proposed feature matching loss without significantly sacrificing training efficiency. Extensive experiments show that SeedVR2 can achieve comparable or even better performance compared with existing VR approaches in a single step.

<p align="center"><img src="assets/teaser.png" width="100%"></p>


## 📮 Notice
**Limitations:** These are the prototype models and the performance may not be perfectly align with the paper. Our methods are sometimes not robust to heavy degradations and very large motions, and shares some failure cases with existing methods, e.g., fail to fully remove the degradation or simply generate unpleasing details. Moreover, due to the strong generation ability, Our methods tend to overly generate details on inputs with very light degradations, e.g., 720p AIGC videos, leading to oversharpened results occasionally.


## ✍️ Citation

```bibtex
@article{wang2025seedvr2,
      title={SeedVR2: One-Step Video Restoration via Diffusion Adversarial Post-Training},
      author={Wang, Jianyi and Lin, Shanchuan and Lin, Zhijie and Ren, Yuxi and Wei, Meng and Yue, Zongsheng and Zhou, Shangchen and Chen, Hao and Zhao, Yang and Yang, Ceyuan and Xiao, Xuefeng and Loy, Chen Change and Jiang, Lu},
      booktitle={arXiv preprint arXiv:2506.05301},
      year={2025}
   }

@inproceedings{wang2025seedvr,
      title={SeedVR: Seeding Infinity in Diffusion Transformer Towards Generic Video Restoration},
      author={Wang, Jianyi and Lin, Zhijie and Wei, Meng and Zhao, Yang and Yang, Ceyuan and Loy, Chen Change and Jiang, Lu},
      booktitle={CVPR},
      year={2025}
   }
```


## 📜 License
SeedVR and SeedVR2 are licensed under the Apache 2.0.