GithubHelp home page GithubHelp logo

bienseo / 3dm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicalab/3dm

1.0 1.0 0.0 79.56 MB

Official code for 3DM: Deep decomposition and deconvolution microscopy for rapid neural activity imaging

Python 0.39% Jupyter Notebook 99.60% Shell 0.01%

3dm's Introduction

3DM: Deep decomposition and deconvolution microscopy

Demo video acquired using 3DM.

Compression is applied, portion of video is shown due to the file size. Supplementary video 1 is the video before compression.

Official source codes for "3DM: Deep decomposition and deconvolution microscopy", Optics Express.

ABSTRACT

Requirements

python==3.7.6
torch==1.5.0
skimage==0.16.2

Demo: BEAR + Deconvolution with pretrained weight

For more detail about BEAR which does unsupervised low-rank and sparse decomposition, please refer to our previous paper. [PAPER][Code and dataset]

There are videos saved in this notebook, where they are not visible if you simply view the notebook in github. One way to view all things in the notebook is opening it with VS Code.

Executing shell (download + Notebook) takes approximately 10 minutes, but may differ to your network connection and computing power.

sh ./run_jupyter.sh

This notebook lets you:

  • Download a portion (t=1~50, size=1.5GB) of calcium imaging data acquired with our wide-field microscope. Note that the number of timeframes of whole data we used was 1260 with 4.2VPS.
  • Do unsupervised low rank and sparse decomposition using BEAR.
  • Load the pretrained 3-D deconvolution network.
  • Do deconvolution for each 50 sparse volumes.
  • Visualize the results.

Followings are visualization results in the notebook.

Unsupervised low rank and sparse decomposition using BEAR.

Maximum intensity projection of videos.

3-D Deconvolution using pretrained network.

Maximum intensity projection of videos. Finally, from raw video acquired using our wide-field microscope, we acquired sparse, deconvolved video!

Train

The following command starts training the 3-D deconvolution network:

python codes/train.py

Test

The following commands do deconvolution after loading the pretrained weight.

python codes/eval_simulation.py --exp_name 3DM --epoch 26000
python codes/eval_3DM_video.py --exp_name 3DM --epoch 26000
  • eval_simulation.py do deconvolution for simulated wide-field data. (See Section 3.1)
  • eval_3DM_video.py do deconvolution for wide-field data acquired with our microscope. (See Section 3.2)

Citation

@article{cho20213dm,
author = {Eun-Seo Cho and Seungjae Han and Kang-Han Lee and Cheol-Hee Kim and Young-Gyu Yoon},
journal = {Opt. Express},
number = {20},
pages = {32700--32711},
publisher = {OSA},
title = {3DM: deep decomposition and deconvolution microscopy for rapid neural activity imaging},
volume = {29},
month = {Sep},
year = {2021},
url = {http://www.osapublishing.org/oe/abstract.cfm?URI=oe-29-20-32700},
doi = {10.1364/OE.439619},
}

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.