Instructions to use 0why0/S2RL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use 0why0/S2RL with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
βοΈ SΒ²-RL
Sample-Set Dual Reinforcement Learning
for Generative Semantic Segmentation Dataset Distillation
Haoyu Wang Β· Fei Zhou Β· Qingqing Qiu Β· Lei Zhang Β· Wei Wei Β· Chen Ding
π arXiv Β· π Project Page Β· π» Code Β· π Datasets Β· π Policy Training Β· π¨ Generation
This repository contains the ADE20K and COCO datasets and LoRA adapters used in the SΒ²-RL main experiments: 10 data archives, 21,700 imageβmask pairs, and two dataset-specific adapters.
π Datasets
Selected real-data subsets
The selection baselines provide subsets of real images and their ground-truth masks. Uniform subsets also supply the category prompts for SΒ²-RL.
| Method | ADE20K | COCO |
|---|---|---|
| Random | Download | Download |
| Uniform | Download | Download |
| Herding | Download | Download |
| K-Center | Download | Download |
All data archives include three budgets and five sets per budget, with paired JPEG images and PNG segmentation masks.
| Dataset | Ratios | Imageβmask pairs per set |
|---|---|---|
| ADE20K | 0.0025, 0.005, 0.01 |
50, 101, 202 |
| COCO | 0.000625, 0.00125, 0.0025 |
73, 147, 295 |
Extract archives into the data root used by the code:
tar -xzf <archive>.tar.gz -C "$S2RL_DATA_ROOT"
ILDistillation/<dataset>/<method>/
βββ images/time_<n>_ratio_<r>/*.jpg
βββ annotations/time_<n>_ratio_<r>/*.png
βββ _manifest.json
ADE20K masks use labels 1..150, with 0 ignored. COCO masks use 0..132, with 255 ignored; class order follows dataset/coco.py.
π Policy Training
Policy training and generation are described in the code repository.
These LoRA adapters use Stable Diffusion 3.5 Medium as the base model. Save both files in the same directory and set POLICY_DIR in the generation script to that directory.
π¨ Generation and selection
Distilled datasets
SΒ²-RL provides distilled datasets of generated images and pseudo-labels for downstream segmentation training.
Extract into $S2RL_DATA_ROOT. Imageβmask pairs are stored under ILDistillation/<dataset>/S2RL/; use DATASET_NAME="S2RL" in the downstream evaluation scripts.
ποΈ Citation
@misc{wang2026s2rl,
title={S$^2$-RL: Sample-Set Dual Reinforcement Learning for Generative Semantic Segmentation Dataset Distillation},
author={Haoyu Wang and Fei Zhou and Qingqing Qiu and Lei Zhang and Wei Wei and Chen Ding},
year={2026},
eprint={2610.35491},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2610.35491}
}
π License
SΒ²-RL contributions are licensed under the MIT License. Third-party components and assets follow their original licenses.
- Downloads last month
- -
Model tree for 0why0/S2RL
Base model
stabilityai/stable-diffusion-3.5-medium