GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - NJUVISION/Hierarchical-Visual-Compression: Hierarchical Visual Description Learning for Ultra-low Rate Progressive Image Compression

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
bitvae
bitvae
 
 
compression
compression
 
 
dataset
dataset
 
 
figs
figs
 
 
infinity
infinity
 
 
tools
tools
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eval.py
eval.py
 
 
requirements.txt
requirements.txt
 
 
train_stage1.sh
train_stage1.sh
 
 
train_stage2_var_entropy_flip_prefix.py
train_stage2_var_entropy_flip_prefix.py
 
 
train_tokenizer.py
train_tokenizer.py
 
 
train_var_flip_prefix.sh
train_var_flip_prefix.sh
 
 
trainer_stage2_var_entropy_flip_prefix.py
trainer_stage2_var_entropy_flip_prefix.py
 
 

Repository files navigation

Hierarchical Visual Description Learning for Ultra-low Rate Progressive Image Compression

๐Ÿ“„ Paper (IEEE Xplore)

Hanfei Li โ€‚ ยท โ€‚ Anle Ke โ€‚ ยท โ€‚ Junqi Shi โ€‚ ยท โ€‚ Tong Chen โ€‚ ยท โ€‚ Zhan Ma

Nanjing University

We propose a VAR-based framework for ultra-low-rate progressive image compression with enhanced semantic preservation and reconstruction quality.

Overview of the proposed framework

๐Ÿ“ข News

  • 2026.10.25 โ€” Our paper is now available on IEEE Xplore (Early Access)!
  • 2026.10.14 โ€” Our paper has been accepted by IEEE JETCAS!

๐Ÿ“Š Quantitative Results

We evaluate our method on DIV2K and CLIC in terms of LPIPS, DISTS, FID, CLIP-Sem, and DINO-Sem across different bitrates.

Quantitative results on DIV2K and CLIC

๐Ÿ–ผ๏ธ Visual Comparisons

Visual comparisons at extremely low bitrates. Our method preserves plausible visual structures and semantic content at compression ratios up to 76,000ร—.

Visual comparisons at ultra-low bitrates

๐Ÿš€ Inference and Evaluation

Pretrained Models

Our pretrained checkpoints are available on ModelScope.

The following models are required for inference:

Model Checkpoint Source
Stage-1 BSQ-VAE stage1_bsqvae.ckpt ModelScope
Stage-2 Infinity-2B stage2_infinity.pth ModelScope
Flan-T5-XL google/flan-t5-xl Hugging Face

Download our checkpoints using ModelScope:

pip install modelscope

modelscope download \
    --model LiHanfei/Hierarchical-Visual-Compression \
    stage1_bsqvae.ckpt stage2_infinity.pth \
    --local_dir ./checkpoints

Download Flan-T5-XL separately:

hf download google/flan-t5-xl \
    --local-dir ./checkpoints/flan-t5-xl

Environment Setup

Our inference environment is based on Python 3.10.19, PyTorch 2.8.0, and CUDA 12.8. Experiments were conducted on NVIDIA A100 GPUs.

conda create -n hvc python=3.10 -y
conda activate hvc

pip install torch==2.8.0 torchvision==0.23.0 \
    --index-url https://download.pytorch.org/whl/cu128

pip install -r requirements.txt
pip install flash-attn==2.8.2 --no-build-isolation

Dataset Preparation

We evaluate our method on DIV2K and CLIC. All images are preprocessed to 1024 ร— 1024 by resizing the shorter side to 1024 while preserving the aspect ratio, followed by a center crop.

Image captions are generated using BLIP-2. We provide dataset/DIV2K.jsonl and dataset/CLIC.jsonl, containing image filenames and their corresponding captions.

Please specify the directory of preprocessed images using --image-root.

Inference

Run inference and evaluate BPP, LPIPS, and DISTS on one image:

python eval.py \
    --vae-ckpt ./checkpoints/stage1_bsqvae.ckpt \
    --infinity-ckpt ./checkpoints/stage2_infinity.pth \
    --t5-path ./checkpoints/flan-t5-xl \
    --dataset-jsonl ./dataset/DIV2K.jsonl \
    --image-root /path/to/DIV2K/images \
    --output-dir ./results/DIV2K \
    --pn 1M \
    --max-images 1

Set --max-images 0 to evaluate the entire dataset.

The script performs progressive compression and reconstruction across 13 scales and reports the corresponding bitrate and perceptual quality.

The reconstructed images and evaluation results are saved under the specified output directory.

๐Ÿ‹๏ธ Training

Our training pipeline consists of two stages:

  • Stage 1 โ€“ BSQ-VAE Training
  • Stage 2 โ€“ Infinity Training

Pretrained Weights

The pretrained VAE and Infinity initialization checkpoints are obtained from the official Infinity repository. The Stage-1 trained VAE checkpoint is subsequently used to initialize Stage 2.

Training Data

Both stages use preprocessed proc_memmap datasets. Please prepare the training and validation data and configure their local paths before training.

Run Training

Stage 1:

export PROC_DIR=/path/to/train_memmap
export PROC_VAL_DIR=/path/to/val_memmap
export PRETRAINED_CKPT=/path/to/infinity_vae_pretrained.pth

bash train_stage1.sh

Stage 2:

export PROC_DATA_PATH=/path/to/train_memmap
export VAE_CKPT=/path/to/stage1_trained.ckpt
export INFINITY_INIT_CKPT=/path/to/infinity_pretrained.pth

bash train_var_flip_prefix.sh

โค Acknowledgement

This work builds upon Infinity. We thank the authors for their valuable contributions.

๐Ÿ™‡ Citation

If you find our work useful, please consider citing:

@article{Li2026Hierarchical,
    author  = {Li, Hanfei and Ke, Anle and Shi, Junqi and Chen, Tong and Ma, Zhan},
    title   = {Hierarchical Visual Description Learning for Ultra-low Rate Progressive Image Compression},
    journal = {IEEE Journal on Emerging and Selected Topics in Circuits and Systems},
    year    = {2026},
    doi     = {10.1109/JETCAS.2026.3746235},
    url     = {https://doi.org/10.1109/JETCAS.2026.3746235}
}

About

Hierarchical Visual Description Learning for Ultra-low Rate Progressive Image Compression

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.