Naifu Xue, Zhaoyang Jia, Jiahao Li, Bin Li, Yuan Zhang, Yan Lu
⭐ If you find DLF helpful, please consider starring this repository. Thank you! 🤗
Recent studies in extreme image compression have achieved remarkable performance by compressing the tokens from generative tokenizers. However, these methods often prioritize clustering common semantics within the dataset, while overlooking the diverse details of individual objects. Consequently, this results in suboptimal reconstruction fidelity, especially at low bitrates. To address this issue, we introduce a Dual-generative Latent Fusion (DLF) paradigm. DLF decomposes the latent into semantic and detail elements, compressing them through two distinct branches. The semantic branch clusters high-level information into compact tokens, while the detail branch encodes perceptually critical details to enhance the overall fidelity. Additionally, we propose a cross-branch interactive design to reduce redundancy between the two branches, thereby minimizing the overall bit cost. Experimental results demonstrate the impressive reconstruction quality of DLF even below 0.01 bits per pixel (bpp). On the CLIC2020 test set, our method achieves bitrate savings of up to 27.93% on LPIPS and 53.55% on DISTS compared to MS-ILLM. Furthermore, DLF surpasses recent diffusion-based codecs in visual fidelity while maintaining a comparable level of generative realism. Code will be available later.

1. Create environment & install dependencies
conda create -n DLF python=3.10
conda activate DLF
pip install -r requirements.txt
Notes:
2. Build the entropy coder for detail branch
sudo apt-get install cmake g++
cd src
mkdir build
cd build
conda activate $YOUR_PY38_ENV_NAME
cmake ../cpp -DCMAKE_BUILD_TYPE=Release[Debug]
make -j
cd src
python test.py \
--base_config ./config/config_test.yaml \
--ckpt_path [checkpoint path] \
--dataset_dir [your image folder] \
--save_dir [output folder] \
--gpu_idx 0
Prepare pretrained models: Semantic Tokenizer and VQGAN Tokenizer
Prepare dataset
find [image folder] -name "*.png" > [output txt path] # or .jpg
cd src
python train.py \
--outdir [your output path] \
--name [your save name] \
--base .config/train/config_qp3_256train.yaml \ # according to your need
--gpus 0,1,2,3
where qp indicates compression level, 256 or 512 indicates training resolution.Notes:
We sincerely thank the following outstanding works, which greatly inspired and supported our research:
If you find our work inspiring, please cite:
@InProceedings{xue2025dlf,
author={Xue, Naifu and Jia, Zhaoyang and Li, Jiahao and Li, Bin and Zhang, Yuan and Lu, Yan},
title={DLF: Extreme Image Compression with Dual-generative Latent Fusion},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
month = {Oct},
year={2025},
}
This work is licensed under the Apache 2.0 License.
1 commits
1 commits
Python
94.0%
C++
4.7%
Naifu Xue, Zhaoyang Jia, Jiahao Li, Bin Li, Yuan Zhang, Yan Lu
⭐ If you find DLF helpful, please consider starring this repository. Thank you! 🤗
Recent studies in extreme image compression have achieved remarkable performance by compressing the tokens from generative tokenizers. However, these methods often prioritize clustering common semantics within the dataset, while overlooking the diverse details of individual objects. Consequently, this results in suboptimal reconstruction fidelity, especially at low bitrates. To address this issue, we introduce a Dual-generative Latent Fusion (DLF) paradigm. DLF decomposes the latent into semantic and detail elements, compressing them through two distinct branches. The semantic branch clusters high-level information into compact tokens, while the detail branch encodes perceptually critical details to enhance the overall fidelity. Additionally, we propose a cross-branch interactive design to reduce redundancy between the two branches, thereby minimizing the overall bit cost. Experimental results demonstrate the impressive reconstruction quality of DLF even below 0.01 bits per pixel (bpp). On the CLIC2020 test set, our method achieves bitrate savings of up to 27.93% on LPIPS and 53.55% on DISTS compared to MS-ILLM. Furthermore, DLF surpasses recent diffusion-based codecs in visual fidelity while maintaining a comparable level of generative realism. Code will be available later.

1. Create environment & install dependencies
conda create -n DLF python=3.10
conda activate DLF
pip install -r requirements.txt
Notes:
2. Build the entropy coder for detail branch
sudo apt-get install cmake g++
cd src
mkdir build
cd build
conda activate $YOUR_PY38_ENV_NAME
cmake ../cpp -DCMAKE_BUILD_TYPE=Release[Debug]
make -j
cd src
python test.py \
--base_config ./config/config_test.yaml \
--ckpt_path [checkpoint path] \
--dataset_dir [your image folder] \
--save_dir [output folder] \
--gpu_idx 0
Prepare pretrained models: Semantic Tokenizer and VQGAN Tokenizer
Prepare dataset
find [image folder] -name "*.png" > [output txt path] # or .jpg
cd src
python train.py \
--outdir [your output path] \
--name [your save name] \
--base .config/train/config_qp3_256train.yaml \ # according to your need
--gpus 0,1,2,3
where qp indicates compression level, 256 or 512 indicates training resolution.Notes:
We sincerely thank the following outstanding works, which greatly inspired and supported our research:
If you find our work inspiring, please cite:
@InProceedings{xue2025dlf,
author={Xue, Naifu and Jia, Zhaoyang and Li, Jiahao and Li, Bin and Zhang, Yuan and Lu, Yan},
title={DLF: Extreme Image Compression with Dual-generative Latent Fusion},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
month = {Oct},
year={2025},
}
This work is licensed under the Apache 2.0 License.
1 commits
1 commits
Python
94.0%
C++
4.7%