Skip to content

Official code for the "Features Denoising for Learned Image Coding" paper published at Euvip 2022

License

Notifications You must be signed in to change notification settings

Dan8991/Feature-Denoising-for-Learned-Image-Coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

This project uses gradient descent to find out the optimal latent space representation for convolutional autoencoders in image coding.

In order to start first create a dataset folder that can contain:

  1. A kodak folder containing the kodak dataset.
  2. A clic folder containing the clic dataset.

Then from the root folder run:

conda env create -f environment.yml 
conda activate FeatureOptimization

In order to install all the required dependencies

Reproducing results

In order to train the networks on the kodak dataset for all QPs and for all models run:

cp configs/kodak_config.yaml src/config-defaults.yaml
cd src
wandb sweep paper_sweep.yaml
wandb agent {agent_id}

To run this you need to have a weights and biases account (it is free for academic research and personal projects). the agent_id will be displayed when you run the wandb sweep command.

On top of that VVC should be installed, and its repo should be in the same folder as the one of this project.

Using the codec to encode images

In order to encode an image just change the config_defaults.yaml file with the parameters you prefer and add modify the input_path, compressed_path and output_path fields (the last two are required only if you want to save the actual result). and run

cd src
python codec.py

The compressed file size will be slightly bigger than the actual one since pickle is used to save the python object. Making an ad hoc binary file would probably reduce its size by some bytes but this was simpler and allows the user to obtain the object in the format required by compressai to decompress it.

About

Official code for the "Features Denoising for Learned Image Coding" paper published at Euvip 2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages