Add model card

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -1,3 +1,30 @@
1
  ---
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ library_name: diffusers
4
+ pipeline_tag: image-to-image
5
  ---
6
+
7
+ # DNF-SR
8
+
9
+ DNF-SR is a real-world image super-resolution model built on [FLUX.1-Kontext-dev](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev). It uses a dual-input and negative-aware feature fine-tuning method, with LoRA adapters trained on both the FLUX transformer and the VAE encoder.
10
+
11
+ - **Paper:** [DNF-SR: Dual-Input and Negative-Aware Feature Fine-Tuning for Real-World Image Super-Resolution](https://huggingface.co/papers/2609.15120)
12
+ - **Code:** [https://github.com/SHH-Han/DNF-SR](https://github.com/SHH-Han/DNF-SR)
13
+
14
+ The repository contains LoRA adapters for the FLUX transformer and VAE encoder, enabling one-step real-world image super-resolution. The base FLUX weights remain frozen.
15
+
16
+ ## Sample Usage
17
+
18
+ The official GitHub README provides inference scripts. Example:
19
+
20
+ ```bash
21
+ INPUT=./data/test_LR OUTPUT=./outputs/infer UPSCALE=4 SEED=42 bash scripts/infer.sh
22
+ ```
23
+
24
+ Or directly on a single image:
25
+
26
+ ```bash
27
+ python3 infer/infer_dual.py --input demo/Canon_050_LR4.png --output_dir ./outputs/infer \
28
+ --flux_path black-forest-labs/FLUX.1-Kontext-dev --lora_path ./ckpt/dual_sft/ \
29
+ --prompt "A close-up, shallow-focus photograph highlights a bottle of pink Martini rosé wine against a blurred background of other liquor bottles on a shelf. Make this image more realistic and detailed." --upscale 4
30
+ ```