Coder Social home page Coder Social logo

hellopipu / hqs-net Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 1.0 815 KB

[MIDL2022] Learned Half-Quadratic Splitting Network for Magnetic Resonance Image Reconstruction

Home Page: https://openreview.net/pdf?id=h7rXUbALijU

Python 93.47% Shell 6.53%
pytorch mri-reconstruction medical-imaging cardiac

hqs-net's Introduction

Open In Colab

HQS-Net

pytorch implementation of the paper Learned Half-Quadratic Splitting Network for Magnetic Resonance Image Reconstruction (https://openreview.net/pdf?id=h7rXUbALijU)

Install

python>=3.7.11 is required with all requirements.txt installed including pytorch>=1.10.0

git clone https://github.com/hellopipu/HQS-Net.git
cd HQS-Net
pip install -r requirements.txt

Prepare dataset

you can find more information about OCMR dataset at https://ocmr.info/

## download dataset
wget -nc https://ocmr.s3.amazonaws.com/data/ocmr_cine.tar.gz -P data/
## download dataset attributes csv file
wget -nc https://raw.githubusercontent.com/MRIOSU/OCMR/master/ocmr_data_attributes.csv -P data/
## untar dataset 
tar -xzvf data/ocmr_cine.tar.gz -C data/
## preprocess and split dataset, it takes several hours
python preprocess_ocmr.py

Or you can directly download the preprocessed dataset here, and then put them to data/ folder

Training

Training and testing Scripts for all experiments in the paper can be found in folder run_sh. For example, if you want to train HQS-Net on accleration factor of 5x, you can run:

sh run_sh/acc_5/train/train_hqs_5.sh

or if you want to train Unet based HQS-Net on accleration factors 10x, you can run:

sh run_sh/acc_10/train/train_hqs_unet_10.sh

Testing

For example, if you want to test HQS-Net on accleration factor of 5x, you can run:

sh run_sh/acc_5/test/test_hqs_5.sh

All pretrained models in the paper can be downlowned here, then you should put them to weight/ folder.

We also provide an Colab demo Open In Colab

.

Tensorboard

tensorboard for checking the curves while training

tensorboard --logdir log

hqs-net's People

Contributors

hellopipu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chenjiachengzzz

hqs-net's Issues

question in formula (6)

Hello, may I ask how the second half of formula (6) is derived in the paper? How did you get rid of the inverse?

DC not used in DCCNN

Hi! I went through your code and I found that the implementation of DCCNN is not using data consistency layer.

I think maybe in the forward you should add this:


dcs.append(DCLayer(norm='ortho'))

...


def forward(self, x, k, m):
    for i in range(self.n_iter):
        x_cnn = self.rec_blocks[i](x)
        x += x_cnn
        x = self.update_operation(x, k, m)
        x = self.dcs[i](x, k, m)

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.