Image-to-Image
Diffusers
Safetensors
super-resolution
image-super-resolution
flux
lora
dpo
diffusion
Instructions to use wafer-bob/ASASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wafer-bob/ASASR with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("wafer-bob/ASASR") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
tags:
|
| 4 |
+
- super-resolution
|
| 5 |
+
- image-super-resolution
|
| 6 |
+
- flux
|
| 7 |
+
- lora
|
| 8 |
+
- dpo
|
| 9 |
+
- diffusion
|
| 10 |
+
library_name: diffusers
|
| 11 |
+
pipeline_tag: image-to-image
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# ASASR — Coloring the Noise: Adversarial Sobolev Alignment for Faithful Image Super-Resolution
|
| 15 |
+
|
| 16 |
+
Pretrained weights for the ICML 2026 paper
|
| 17 |
+
**[Coloring the Noise: Adversarial Sobolev Alignment for Faithful Image Super-Resolution](https://arxiv.org/abs/2605.23264)**
|
| 18 |
+
(Hongbo Wang, Huaibo Huang, Pin Wang, Jinhua Hao, Chao Zhou, Ran He).
|
| 19 |
+
|
| 20 |
+
➡️ **Code & full instructions: https://github.com/wafer-bob/ASASR**
|
| 21 |
+
|
| 22 |
+
ASASR performs ×4 image super-resolution with a **FLUX.1-dev** backbone and dual-LoRA
|
| 23 |
+
inference: a base **SR LoRA** (upscaling prior, OminiControl) plus our **DPO LoRA** trained
|
| 24 |
+
with a Sobolev frequency-weighted, adversarially-guided DPO objective (AS-DPO).
|
| 25 |
+
|
| 26 |
+
## Files
|
| 27 |
+
|
| 28 |
+
| File | Size | Use |
|
| 29 |
+
|---|---|---|
|
| 30 |
+
| `sr_lora/pytorch_lora_weights_v2.safetensors` | ~885 MB | base SR LoRA — **inference** |
|
| 31 |
+
| `dpo_lora/adapter_model.safetensors` | ~111 MB | ASASR AS-DPO LoRA — **inference** |
|
| 32 |
+
| `adv_lora/adapter_model.safetensors` | ~111 MB | rank-16 AMG adversary — **training only** |
|
| 33 |
+
|
| 34 |
+
## Download
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
huggingface-cli download wafer-bob/ASASR --local-dir ./checkpoints
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Then follow the [GitHub README](https://github.com/wafer-bob/ASASR) for inference
|
| 41 |
+
(`bash scripts/infer.sh`) and training.
|
| 42 |
+
|
| 43 |
+
## Citation
|
| 44 |
+
|
| 45 |
+
```bibtex
|
| 46 |
+
@inproceedings{wang2026asasr,
|
| 47 |
+
title = {Coloring the Noise: Adversarial Sobolev Alignment for Faithful Image Super-Resolution},
|
| 48 |
+
author = {Wang, Hongbo and Huang, Huaibo and Wang, Pin and Hao, Jinhua and Zhou, Chao and He, Ran},
|
| 49 |
+
booktitle = {International Conference on Machine Learning (ICML)},
|
| 50 |
+
year = {2026}
|
| 51 |
+
}
|
| 52 |
+
```
|