Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
zhangych02 fecec78dda | 1 year ago | |
---|---|---|
assets | 1 year ago | |
compressai | 1 year ago | |
compressai.egg-info | 1 year ago | |
demo | 1 year ago | |
docker | 1 year ago | |
docs | 1 year ago | |
examples | 1 year ago | |
results | 1 year ago | |
tests | 1 year ago | |
third_party/ryg_rans | 1 year ago | |
torch_compressai/compressai | 1 year ago | |
CONTRIBUTING.md | 1 year ago | |
LICENSE | 1 year ago | |
MANIFEST.in | 1 year ago | |
Makefile | 1 year ago | |
NEWS.md | 1 year ago | |
Readme.md | 1 year ago | |
Variational image compression with a scale hyperprior.pdf | 1 year ago | |
demo.ipynb | 1 year ago | |
mindspore.jpg | 1 year ago | |
ms_reconstruct.jpg | 1 year ago | |
mypy.ini | 1 year ago | |
pyproject.toml | 1 year ago | |
requirements.txt | 1 year ago | |
setup.py | 1 year ago | |
test_ms.py | 1 year ago | |
test_torch.py | 1 year ago | |
tmp.ipynb | 1 year ago | |
torch.jpg | 1 year ago | |
torch_reconstruct.jpg | 1 year ago |
《Variational image compression with a scale hyperprior》
key words:image compression, variational autoencoder, scale hyperprior
bmshj proposes an end-to-end trainable model for image compression based on variational autoencoders. It performs better than artificial neural networks based methods in compressing images on visual quality measurements like MS-SSIM and PSNR.
1.translate from pytorch to mindspore
2.successfully run forward, backward and parameter update
3.test and compare between the mindspore version and the pytorch version
the translated model file is compressai/models/google_mindspore.py
please intall compressai via
pip install -e .
under dictionary CompressAI_MindSpore.
to use the translated model, check
from compressai.zoo import bmshj2018_factorized, bmshj2018_hyperprior
model = bmshj2018_factorized(quality=2, pretrained=False)
model = bmshj2018_hyperprior(quality=2, pretrained=False)
please check demo.ipynb
to know the use of the models, and the forward and backward and parameter update
or
1.pip install -e .
2.python test_ms.py
1.change dictionary 'compressai' to 'compressai1'
2.pip install compressai
3.python test_torch.py
mindspore version
pytorch version
The results of different bitrate models on div2k test dataset:
qp | bpp | PSNR | MSSSIM | time_cost | GPU M |
---|---|---|---|---|---|
1 | 0.296 | 27.582 | 0.917 | 6.212 | 4004 |
2 | 0.372 | 29.197 | 0.942 | 3.505 | 4004 |
5 | 0.822 | 34.526 | 0.984 | 3.462 | 4004 |
7 | 1.493 | 38.584 | 0.993 | 5.111 | 4004 |
translated from pytorch
@article{balle2018variational,
title={Variational image compression with a scale hyperprior},
author={Ball{\'e}, Johannes and Minnen, David and Singh, Saurabh and Hwang, Sung Jin and Johnston, Nick},
journal={arXiv preprint arXiv:1802.01436},
year={2018}
}
name: Kaiyu Zheng, Yongchi Zhang
No Description
Jupyter Notebook Python C++ Text Shell 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》