Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
yehua 3c80079e89 | 1 year ago | |
---|---|---|
CompressAI_MindSpore | 1 year ago | |
images | 1 year ago | |
source | 1 year ago | |
readme.md | 1 year ago |
Learned Image Compression with Discretized Gaussian Mixture Likelihoods and Attention Modules
key words: Image Compression, Gaussian Mixture Model
This paper generalizes the hyperprior from lossy model to lossless compression, and proposes a L2-norm term into the loss function to speed up training procedure. Besides, this paper also investigated different parameterized models for latent codes, and propose to use Gaussian mixture likelihoods to achieve adaptive and flexible context models. The paper is published in 2020, and readers can read the original paper via the link.
source
├── __pycache__
├── decoded files # decoded images
├── model
│ └── best.ckpt # model file with best performance
│ └── train_log.txt # train log
├── model_baseline.py # model baseline
├── test.py # test in reality
└── train.py # train
Please intall compressai via
pip install -e .
under directory CompressAI_MindSpore.
Go to directory source.
Train the model via:
python train.py -d "your/own/dataset/address" --seed 0 --batch-size 16 --test-batch-size 1 --save --lambda 0.01 -e 10
python test.py -d "your/own/dataset/address" --seed 0 --test-batch-size 1 --lambda 0.01 --pretrained_file "model/best.ckpt"
mindspore version
Comparison of the original images with reconsructed ones (original above, reconstructed below) |
bpp | PSNR | MSSSIM | run_time | GPU Memory(MiB) | lambda |
---|---|---|---|---|---|
0.339 | 26.436 | 0.931 | 39.207 | 4002 | lambda0.01 |
0.555 | 27.445 | 0.949 | 19.941 | 4002 | lambda0.03 |
0.779 | 28.761 | 0.965 | 33.257 | 4002 | lambda0.05 |
0.986 | 28.911 | 0.967 | 34.209 | 4002 | lambda0.08 |
bpp | PSNR | MSSSIM | enc_time | dec_time | GPU Memory(MiB) | lambda |
---|---|---|---|---|---|---|
0.092 | 25.584 | 0.937 | 103.44 | 232.992 | 1464 | qp1 |
0.215 | 27.705 | 0.972 | 105.96 | 236.736 | 1464 | qp3 |
0.32 | 29.002 | 0.982 | 86.16 | 212.16 | 1620 | qp4 |
0.596 | 31.44 | 0.991 | 87.072 | 216.84 | 1620 | qp6 |
@misc{cheng2020learned,
title={Learned Lossless Image Compression with a HyperPrior and Discretized Gaussian Mixture Likelihoods},
author={Zhengxue Cheng and Heming Sun and Masaru Takeuchi and Jiro Katto},
year={2020},
eprint={2002.01657},
archivePrefix={arXiv},
primaryClass={eess.IV}
}
Name:
Chenhao Zhang
No Description
Jupyter Notebook Python Text C++ reStructuredText other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》