Giter Club home page Giter Club logo

mac-net's Introduction

Learning Memory Augmented Cascading Network for Compressed Sensing of Images

@inproceedings{chen2020learning,
  title={Learning memory augmented cascading network for compressed sensing of images},
  author={Chen, Jiwei and Sun, Yubao and Liu, Qingshan and Huang, Rui},
  booktitle={European Conference on Computer Vision},
  pages={513--529},
  year={2020},
  organization={Springer}
}

DATA SET

We utilize 91 images which are the common usage in CS training. We crop these images into the size of 96*96. We test our model in three dataset: SET11, BSD68 and MICCAI 2013(MRI).

TRAIN

  • just
$ python MAC_Net_train.py

TEST

$ python MAC_Net_test.py

Other things

Other details will be added.

New

If you want to simplify the generation of y from the image, you can modify the code:

Firstly, reshape the measurement matrix:

phi = np.reshape(A, (block_size, block_size, 1, size_y))

Secondly, use the function "tf.nn.conv2d" to realize the samling(measurement), for example:

y_meas = tf.nn.conv2d(t_target_image, A, (1, block_size, block_size, 1), padding='SAME')

This can be modified in "train.py" and "model.py" where use the "for" to generate the y. It is time-consuming to use the "for". So if you use the new code, it will be faster. Because it will be processed in GPU instead of CPU.

mac-net's People

Contributors

dflyan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

mac-net's Issues

Bug in test.py

Except for MR=0.25, the test code of SET11 produces the following error (e.g. for MR=0.1)

ValueError: Cannot reshape a tensor with 26 elements to shape [1,1,1,64] (64 elements) for 'cascade/Reshape_1' (op: 'Reshape') with input shapes: [1,26], [4] and with input tensors computed as partial shapes: input[1] = [1,1,1,64].

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.