Giter Site home page Giter Site logo

lcic-pytorch's Introduction

Layered Conceptual Image Compression Via Deep Semantic Synthesis

The implementation of the conception compresssion framework proposed in the paper Layered Conceptual Image Compression Via Deep Semantic Synthesis (ICIP 2019).

Citation

If you find it useful for your research, please cite as following:

@inproceedings{chang2019layered, title={Layered Conceptual Image Compression Via Deep Semantic Synthesis}, author={Chang, Jianhui and Mao, Qi and Zhao, Zhenghui and Wang, Shanshe and Wang, Shiqi and Zhu, Hong and Ma, Siwei}, booktitle={2019 IEEE International Conference on Image Processing (ICIP)}, pages={694--698}, year={2019}, organization={IEEE} }

Framework Pipeline

The pipeline of the proposed framework is shown below.

avatar

Results

The proposed method demonstrates better perception quality under lower bit rate than traditional algorithms such as JPEG\JPEG2000\HM. (note that the dimension of latent codes is 8 here).

avatar

Dependencies

python >= 3.6
pytorch >= 1.14
numpy >= 1.18
pillow >= 6.2.0
dominate >= 2.5
visdom >=0.1.8
tqdm >= 4.36.1

Prepare Data

Prepare paired data(image-edge pairs): Training datasets include the following datasets, please download one of the following training datasets, and unzip the files.

  1. edges2handbags: http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/edges2handbags.tar.gz
  2. edges2shoes: http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/edges2shoes.tar.gz

Training command

You can follow the examples in ./scripts/train.sh.

python train.py --dataroot=[path of training data] --phase=[name of datasets: train/val/test] --nz=[dimension of latent codes]

Testing command

Please follow the examples in ./scripts/test.sh.

python test.py --dataroot=[path of testing data] --results_dir=[path where you put the results images] --checkpoints_dir=[checkpoints_dir] --no_flip --epoch=[name of checkpoints: default latest]

Pretrained model

You can find the pretrained model which is trained 80 epochs with combined dataset of edges2shoes and edges2handbags. The dimension of texture latent codes is set to 64.

Reconstrution examples

There are some reconstruction examples of the provided pretrained model.

Reference

lcic-pytorch's People

Contributors

floatbutterfly avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.