Giter VIP home page Giter VIP logo

mri_sampling_diffusion's Introduction

Optimizing Sampling Patterns for Compressed Sensing MRI with Diffusion Generative Models

Code for "Optimizing Sampling Patterns for Compressed Sensing MRI with Diffusion Generative Models". Our pre-print can be found at https://arxiv.org/abs/2306.03284.

Setup

First, set up a Conda environment using conda env create -f conda_env.yml.

Download the model checkpoints and fastMRI metadata from: https://drive.google.com/file/d/18n2QUN30qrBbM9rcxS3HIjIWImSbkJ-2/view?usp=sharing

Structure

  • algorithms: algorithms for solving inverse problems
  • configs: yaml config files for running experiments
  • datasets: PyTorch dataset classes
  • learners: the main control classes for gradient-based meta-learning
  • problems: defines forward operators as classes for re-usability
  • utils: useful functions for experiment logging, metrics, and losses
  • main.py: program to invoke for running meta-learning from command line

How to run

Here is an example command for training and evaluating a sampling mask:

python3 main.py --config PATH_TO_CONFIG --doc NAME_OF_EXPERIMENT

Here is a command for evaluating a baseline mask on test data:

python3 main.py --config PATH_TO_CONFIG --doc NAME_OF_EXPERIMENT --baseline

Submodule initialization

git submodule update --init --recursive

mri_sampling_diffusion's People

Contributors

sriram-ravula avatar

Stargazers

Zichen Wang avatar  avatar  avatar MemeCat avatar Mastuko avatar Jinbao Wei avatar nothing  avatar Chen Lixuan avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

peikalunci

mri_sampling_diffusion's Issues

Datasets missing

Hi Sriram,
train_input_dir: '/csiNAS/brett/sites_new/Training/site5/ksp'
train_maps_dir: '/csiNAS/brett/sites_new/Training/site5/maps'
test_input_dir: '/csiNAS/brett/sites_new/Validation/site5/ksp'
test_maps_dir: '/csiNAS/brett/sites_new/Validation/site5/maps'
above data you didn't provide for the project

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.