Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Official repository for "A little bit more: Bitplane-wise bit-depth recovery"

BibTeX

@misc{punnappurath2020little,
    title={A Little Bit More: Bitplane-Wise Bit-Depth Recovery},
    author={Abhijith Punnappurath and Michael S. Brown},
    year={2020},
    eprint={2005.01091},
    archivePrefix={arXiv},
    primaryClass={eess.IV}
}

Requirements

This code was tested on

  • Python 3.6
  • Tensorflow 1.12.0
  • Keras 2.2.4
  • scikit-image 0.15.0
  • opencv 3.3.1

Or create a new conda environment with

conda env create -f environment.yml

and activate it with

conda activate bitmore

Testing code

Sample usage

  • To test 4 to 8-bit recovery on the Kodak dataset (which has already been downloaded to ./data/Test/Kodak) using our D16 model, run

    python test.py --set_names Kodak --type_8_or_16 0 --quant 4 --quant_end 8 --dep 16 
    

    (Note: --type_8_or_16 flag -> 0 = 8-bit images, 1 = 16-bit images in the corresponding --set_names folder)

  • To test 6 to 16-bit recovery on this sample image from the Sintel dataset (which has already been downloaded to ./data/Test/Sintel_sample) using our D4 model and save the result, run

    python test.py --set_names Sintel_sample --type_8_or_16 1 --quant 6 --quant_end 16 --dep 4 --save_result 1  
    
  • To test 4 to 8-bit recovery on the Kodak dataset and on the sample image from the Sintel dataset using our D4 model, run

    python test.py --set_names Kodak,Sintel_sample --type_8_or_16 0,1 --quant 4 --quant_end 8 --dep 4 
    

Main paper results

  1. To reproduce the numbers in Table I, run this code to download the data, and this code to produce the outputs.
  2. To reproduce the numbers in Table II, run this code to download the data, and this code to produce the outputs.
    • Note: Downloading and preparing Adobe MIT test data can take a while!
  3. To reproduce the numbers in Table III, follow these instructions to download the data, and run this code to produce the outputs.
  4. To reproduce the numbers in Table IV on the Kodak dataset which has already been downloaded to ./data/Test/Kodak, run this code.
  5. To reproduce the numbers in Table V, follow these instructions to download the data, and run this code to produce the outputs.

Supplementary material results

  1. To reproduce the numbers in Table S1, follow these instructions to download the data, and run this code to produce the outputs.
  2. To reproduce the numbers in Table S2, follow these instructions to download the data, and run this code to produce the outputs.
  3. To reproduce the numbers in Table S3, and run this code.
  4. To reproduce the numbers in Table S4, and run this code.
  5. To reproduce the numbers in Table S5, follow these instructions to download the data, and run this code to produce the outputs.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published