Giter Club home page Giter Club logo

-pytorch-'s Introduction

A Framework for Denoising MonteCarlo Photon Transport Simulations Using Deep Learning

This repository contains the code for Journal of Biomedical Optics paper with the same name. This repo also contains additional code and results for denoising 2D simulations + additional test cases for both 2D and 3D.

How to run

Pre-requisites

All required Python packages can be installed via requirements.txt:

pip install -r requirements.txt

Matlab also must be installed for generating datasets required for training and testing. MCXLab and other supporting Matlab mex files are already included in this repository. There is no need to additionally clone the required files, unless you want a newer version of MCX/MCXLab. They are located in the matlab/ folder.

Dataset Generation

To generate both training and testing dataset, run Matlab function generate_data included in data/generate/generate_data.m. More info on the arguments can be found in the file itself.

Training

To train, run train-lightning.py with the configs in the 2D and 3D folder. Refer to config.py for more info on the config arguments.

Inference

Run model-inference.py for model inference with configs in the 2D and 3D folder. Refer to config.py for more info on the config arugments.

Folder Structure

  • configs/ contains all the yaml configurations needed to run scripts
    • 2D+3D/ contains all configurations for 2D/3D fluence maps
      • analysis/ contains all configurations for analysing inference results from all models
        • cross-section contains all configuration for analysing the middle cross-section of benchmarks B1-B3.
        • global-metrics contains all configurations for analysing the global metrics (MSE, PSNR, SSIM) for all benchmarks in the paper.
      • blind-denoising contains all configurations for training denoising models.
      • inference contains all configurations for performing inference on different datasets using different models.
      • profile (3D only) contains all configurations for profiling the denoising models on different dataset dimensions presented in the paper.
      • visualization contains all configurations for visualizing the results acquired from denoising.
  • data/
    • augmentation/ contains logic used for data augmentation during training.

Benchmarking Denoisers

Profiling Denoisers

Questions

Citation

If you use this work in your publication, please cite the following:

-pytorch-'s People

Contributors

matinraayai avatar

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.