Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

LR2Flow: Enhancing Low-resolution Image Representation Through Normalizing Flows

Official PyTorch implementation of LR2Flow, presented in:

Enhancing Low-resolution Image Representation Through Normalizing Flows Chenglong Bao, Tongyao Pang, Zuowei Shen, Dihan Zheng, and Yihang Zou arXiv preprint arXiv:2601.06834, 2026.

[Paper]

Pretrained Models

Pretrained models are available from Google Drive.

Please download the corresponding .pth files and place them in:

./experiments/pretrained_models/

Configuration

Before training or testing, please configure the corresponding .yml files located in:

./codes/options/train/
./codes/options/test/

The dataset paths, pretrained model paths, and other experimental settings can be specified in these configuration files.

Testing

Run the following commands under the ./codes/ directory.

Image Rescaling

×2 image rescaling

python3 test_rescaling.py --opt options/test/test_rescaling_x2.yml

×4 image rescaling

python3 test_rescaling.py --opt options/test/test_rescaling_x4.yml

Image Compression

python3 test_compression.py --opt options/test/test_compression_x2.yml

Alternatively, to evaluate the compression performance in terms of bits per pixel (bpp), run:

python3 test_compression_bpp.py --opt options/test/test_compression_x2.yml

Image Denoising

python3 test_denoising.py --opt options/test/test_denoising.yml

Training

Run the following commands under the ./codes/ directory.

Image Rescaling

×2 image rescaling

python3 train_rescaling.py --opt options/train/train_rescaling_x2.yml

×4 image rescaling

python3 train_rescaling.py --opt options/train/train_rescaling_x4.yml

Image Compression

python3 train_compression.py --opt options/train/train_compression_x2.yml

Image Denoising

python3 train_denoising.py --opt options/train/train_denoising.yml

Acknowledgements

This codebase is built upon HCFlow and is also inspired by IRN and BasicSR.

About

Official implementation of LR2Flow

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages