HKUST-LongGroup/Coarse-guided-Gen
À propos
[arXiv 2026] Official PyTorch Repository for "Adaptive Weighted h-Transform Sampling for Coarse-Guided Visual Generation"
Design et médiasProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalAdaptive Weighted h-Transform Sampling for Coarse-Guided Visual Generation
Yanghao Wang* · Ziqi Jiang* · Zhen Wang · Long Chen†
* Equal contribution
Image Restoration
Image Editing
Camera-controlled Video Generation


Achieve various conditional visual generation guided by a coarse sample with 1 line of code.
0. Table of Contents
1. Environment preparation
pip install -r requirements.txt
2. Quick start
Coarse image guided generation
We take the image super-resolution task and generate the images for the given eight example images.
cd ImageGen
wget -P ./models/ https://github.com/HKUST-LongGroup/Coarse-guided-Gen/releases/download/datasets/ffhq_10m.pt
bash quick_run.sh
The result will be stored in the ''ImageGen/outputs/'' path.
Coarse video guided generation
We generate the video for the given example video.
cd VideoGen
bash quik_run.sh
The result will be stored in the ''VideoGen/outputs/'' path.
3. Full run (complete datasets and evaluation)
Coarse image guided generation
cd ImageGen
Prepare the complete datasets.
wget -P ./data/ https://github.com/HKUST-LongGroup/Coarse-guided-Gen/releases/download/datasets/ffhq_256.zip
unzip -j ./data/ffhq_256.zip -d ./data/ffhq_256
Full experiments including the evaluation.
bash full_run.sh
The result will be stored in the ''ImageGen/outputs/'' path.
You can change the hyperparameter $\alpha$ in the 3rd line of ''full_run.sh''.
Coarse video guided generation
cd VideoGen
Prepare the complete datasets.
wget -P ./data/ https://github.com/HKUST-LongGroup/Coarse-guided-Gen/releases/download/datasets/datasets_cog.zip
unzip -j ./data/datasets_cog.zip -d ./data/datasets_cog
wget -P ./data/ https://github.com/HKUST-LongGroup/Coarse-guided-Gen/releases/download/datasets/datasets_wan.zip
unzip -j ./data/datasets_wan.zip -d ./data/datasets_wan
Full experiments including the evaluation.
bash full_run.sh
The result will be stored in the ''VideoGen/outputs/'' path.
You can change the hyperparameters $\alpha_1$ and $\alpha_2$ in ''full_run.sh''.
TODO 🛠️
- Image restoration run code
- Camera-controlled video generation run code
- Quick start examples
- Complete datasets release
- Evaluation code
- Coarse videos construction code
- Image editing code
Acknowledgments
The codebases are built on top of DPS and TTM. Thanks very much.
BibTex
@article{wang2026coarse,
title={Coarse-Guided Visual Generation via Weighted h-Transform Sampling},
author={Wang, Yanghao and Jiang, Ziqi and Wang, Zhen and Chen, Long},
journal={arXiv preprint arXiv:2603.12057},
year={2026}
}
Explorer des projets similaires
Chargement…