Skip to content

COMP6248-Reproducability-Challenge/COMP6248-Image-Compression-HeySiri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project reproduced the base model of the paper "Context-adaptive Entropy Model for End-to-end Optimized Image Compression".

Team Name : HeySiri

Reconstruction Sample

image

Installation

This project can only run on Linux and Mac OS, not on Windows, because the tensorflow compression package cannot be installed in the Windows environment.

Python > 3.6

Run the below command to install the tensorflow package

pip install tensorflow==1.15

Run the below command to install the tensorflow-compression package

pip install tensorflow_compression

Training model

python model.py --verbose train --train_glob="pictures/*.jpg"

Compress/Decompress an image

If you want to compress or decompress an image, the simplest way is to run test.py

Or

python model.py --checkpoint_dir train compress  pictures/image4.jpg compressed.tfci

python model.py decompress compressed.tfci reconstruction.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages