Skip to content

ksb1712/Image-Compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Image-Compression

Simple Image compression using CNN in Pytorch.

Tested in Python 3.6
Requirements: Pytorch, skimage, PIL, patchify, opencv

Theory

General image compression programs using deep learning,to try and reduce the image dimensionality by learning the latent space representations. Here a thumbnail image of the original image is first created by downscaling the image and then the residual between the thumbnail and the orignal image is encoded in the latent space. This results in better encoding via an entropy encoder as most of the values are 0.

Usage

import test_utils as utils
utils.compress_img(name.png) 
utils.decompress_img(name.npz)

About

Simple Image compression using CNN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages