HKUST-LongGroup/Coarse-guided-Gen
حول
[arXiv 2026] Official PyTorch Repository for "Adaptive Weighted h-Transform Sampling for Coarse-Guided Visual Generation"
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- -١
- خلال 15 يومًا
- -١
- خلال شهر
- التحديث متأخر
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلAdaptive 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}
}
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…