GithubHelp home page GithubHelp logo

mortezamardani / gan-hallucination Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 6.0 383 KB

This projects investigates the possible hallucinations or adversarial attacks for solving linear inverse problems. The goal is to understand the possible hallucinations, define metrics to quantify the hallucination, and find regularization techniques to make deep reconstruction nets robust against hallucination.

Python 100.00%

gan-hallucination's Introduction

GAN-Hallucination

Background

The "hallucination" of realistic-looking artifacts is a major concern in the reconstruction of medical images, with the potential to mislead radiologists and result in bad patient outcomes. This project aims to provide a better understanding of the hallucination process through the implementation of a deep VAE-GAN model (in the VAE branch). The model learns a manifold of realistic images, and as the venn diagram below shows, intersecting this manifold with the subset of data consistent images (ensuring consistency with physical measurement) creates points corresponding to images with high likelihood of hallucination.

After training this model, its generative capabilities can be harnessed to produce new reconstructions (which lie in the intersection described above) that can be evaluated both visually and statistically. Future work will involve the development of regularization schemes to prevent hallucinations from occurring.

Data

In training the model, we use a knee dataset obtained from patients at Stanford Hospital. Fully sampled images of size 320 by 256 are taken, downsampled, and then undersampled to provide inputs to the VAE-GAN model.

Model Architecture

The model architecture is shown below, with the VAE (encoder and decoder layers are comprised of strided and transpose convolutions, respectively), a data consistency layer (affine projection), and discriminator (standard ConvNet).

Command to Run From Terminal

python3 srez_main.py
--run train
--dataset_train Data/Knee-highresolution-19cases/train/
--dataset_test Data/Knee-highresolution-19cases/test/ --sampling_pattern Data/Knee-highresolution-19cases/sampling_pattern/mask_2fold_160_128_knee_vdrad.mat
--sample_size 160
--sample_size_y 128
--batch_size 2
--summary_period 20000
--sample_test -1
--sample_train -1
--subsample_test 1000
--subsample_train 1000 --train_time 100
--train_dir results/ --checkpoint_dir checkpoints/ --tensorboard_dir tensorboard/ --gpu_memory_fraction 1.0
--hybrid_disc 0
--starting_batch 0

gan-hallucination's People

Contributors

vineete avatar mortezamardani avatar

Stargazers

Yasin Rezvani avatar Xinzhe Luo avatar Mauro Risonho de Paula Assumpção avatar Doug avatar CHEN_QUN avatar Gabriel Ziegler avatar MemeCat avatar  avatar  avatar Bram ter Huurne avatar Ellery Queen avatar  avatar wilson avatar Matěj Račinský avatar Zhaodong Sun avatar 爱可可-爱生活 avatar

Watchers

James Cloos avatar  avatar

gan-hallucination's Issues

Data and checkpoints

Hello! author
I am pretty interested in your work and like to run your code to compare how our related work's quality is. Could you provide your train/test data and pretrained checkpoints, Thank you very much!

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.