Pytorch Implementation of "ShiftLIC: High-Efficiency Learned Image Compression with Spatial-Channel Shift Operations"
This repository contains the Pytorch implementation of the paper "ShiftLIC: High-Efficiency Learned Image Compression with Spatial-Channel Shift Operations" in IEEE Transactions on Circuits and Systems for Video Technology.
- Provide pretrained models
- Offer supplementary materials
To run this code, you will need the following dependencies:
- Pytorch 1.9
- CompressAI
You can install the necessary dependencies using the following command:
pip install torch==2.0.1 compressai=1.2.4Pretrained models will be made available soon. Stay tuned for updates.
To train the models, follow these steps:
-
Clone the repository:
git clone https://github.com/baoyu2020/ShiftLIC.git cd ShiftLIC/shiftlic/large/ -
Prepare your dataset and adjust the configuration in
config.py. -
Run the training script:
python train.py -q 1 --out_dir ./Log/out_dir/ --batch_size 16 --metric mse --lr 1e-4 --epochs 100 --dataset Train_dataset_dir
To test the models, follow these steps:
-
Run the testing script:
python test.py --model_path ./Log/out_dir/model_best.pth --dataset Test_dataset_dir
-
The results will be saved in the
./Log/out_dir/directory.
This repository is based on CompressAI and TinylLIC.
If you find this work useful for your research, please cite:
@article{10947057,
author={Bao, Youneng and Tan, Wen and Jia, Chuanmin and Li, Mu and Liang, Yongsheng and Tian, Yonghong},
journal={IEEE Transactions on Circuits and Systems for Video Technology},
title={ShiftLIC: Lightweight Learned Image Compression with Spatial-Channel Shift Operations},
year={2025},
doi={10.1109/TCSVT.2025.3556708}}
@article{lu2022high,
title={High-Efficiency Lossy Image Coding Through Adaptive Neighborhood Information Aggregation},
author={Lu, Ming and Ma, Zhan},
journal={arXiv preprint arXiv:2204.11448},
year={2022}
}
For any inquiries or issues, please contact us at ynbao@stu.hit.cn.
We hope you find this repository useful. Contributions are welcome!


