Skip to content

A case study about Neural Networks and Compression.

License

Notifications You must be signed in to change notification settings

SerChirag/ZippyNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZippyNet

A case study about Neural Networks and Compression.

Data-Set

We have used Large-scale CelebFaces Attributes Dataset. The reason for using this dataset was simply because the dataset was uniform. It contains 669 images of 42*42 dimension images of celebrities. Data-Set Example

Results

The model is able to compress the image from 1.1 kiloBytes (40403) to just 332 Bytes (56 * 1). The model is able to succesfully reconstruct the image using the decoder application.

Comparing Images

Loss

Comparision with other image compressors:

Quality of image has been measured according to website: https://www.imgonline.com.ua/eng/determine-jpeg-quality.php

Comparision with our autoencoder model to compress images.

Image OriginalSize CompressedSize Original Compression(JPEG) Our Model Compression(JPEG)
000001.jpg 1kb 332B 75 95
000002.jpg 1kb 332B 75 95

Comparision with famous linux application mogrify to compress images.

Image OriginalSize CompressedSize Quality
000001.jpg 1kb 1kb 75
000002.jpg 1kb 1kb 75

Comparision with website https://compressimage.toolur.com/

Image OriginalSize CompressedSize Quality
000001.jpg 1kb 1.2kb 95
000002.jpg 1kb 1.2kb 95

Conclusion:

From the comparisions it is clear that tradional compression algorithms are not good at compressing smaller sized images. Either they are unable to further compress images(mogrify) or they increase the size of images, which is opposite of what we want. This provides use-case opportunities to application of deep learning for image compression.

Scope

Relevance with respect to Data-Set Compression works best on high-dimensional images with little significance for relative positioning of objects within the data.

enter image description here

Thus it works best for landscape like images. Shifting the mountain by a few pixels or changing the colour of the sky does not affect the image.

We have trained our data on a low-dimensional dataset with high importance to relative positioning of objects.Shifting the nose by a few pixels greatly impacts the out image. Hence, our model is extremely important as it is training on a very hard dataset and still giving excellent results.


Scope of One-Model

We tried to train a similar model on a . This data-set contained random image ranging from various people, object, buildings etc. The resulting model did not train at all.

Thus, auto-encoders can be used as a compressor only for similar looking data-set, unlike other compression algorithms like JPEG and JPEG-2000.


Representation of Compressed Form

Currently, the compressed data obtained from the auto-encoder is stored as a '.npy' file, which is notorious for high overheads.

Thus, if we can effectively store the output of the encoder, we will be able to further compress the image.

About

A case study about Neural Networks and Compression.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published