Giter VIP home page Giter VIP logo

csnet-pytorch's Introduction

CSNet-Pytorch

Pytorch code for paper

  • "Deep Networks for Compressed Image Sensing" ICME2017

  • "Image Compressed Sensing Using Convolutional Neural Network" TIP2019

Requirements and Dependencies

  • Ubuntu 16.04 CUDA 10.0
  • Python3 (Testing in Python3.5)
  • Pytorch 1.1.0
  • Torchvision 0.2.2

Details of Implementations

In our code, two model version are included:

  • simple version of CSNet (Similar with paper ICME2017)
  • Enhanced version of CSNet (local skip connection + global skip connection + resudial learning)

How to Run

Training CSNet

  • Preparing the dataset for training

  • Editing the path of training data in file train.py.

  • For CSNet training in terms of subrate=0.1:

python train.py --sub_rate=0.1 --block_size=32

Testing CSNet

  • Preparing the dataset for testing

  • Editing the path of trained model in file test.py and test_new.py.

  • For CSNet testing in terms of subrate=0.1: (ps: For this testing code, there is a big gap compared with the result in the publised paper. And I am confused about it. If you know the reason, please let me know. Thanks very much!)

python test.py --sub_rate=0.1 --block_size=32

  • For CSNet testing (new testing code) in terms of subrate=0.1:

python test_new.py --cuda --sub_rate=0.1 --block_size=32

CSNet results

Subjective results

image

Objective results

image

Additional instructions

  • For training data, you can choose any natural image dataset.
  • The training data is very important, if you can not achieve ideal result, maybe you can focus on the augmentation of training data or the structure of the network.
  • If you like this repo, Star or Fork to support my work. Thank you.
  • If you have any problem for this code, please email: [email protected]

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.