Code Monkey home page Code Monkey logo

fibsem's Introduction

FIBSEM

CMM requested software infrastructure support from ABCS to develop a run time augmentation system for high resolution FIBSEM imaging. In responding to the CMM request, ABCS proposes a solution as described below:

A docker container has been designed to run imaging algorithms as needed. The container bundles multiple algorithms together with a method to execute the algorithms automatically. Each algorithm is contained in a single python script file in the repo/ directory. The container automatically watches for new images in the input directory. Whenever a new image is added, the selected algorithm (see the taskName below) is run on the image and the output is written to the selected output directory.

Download docker image:

git clone https://github.com/abcsFrederick/FIBSEM.git

Build docker image:

  1. Go to 'FIBSEM' directory and export FIBSEM
export FIBSEM=$PWD
  1. Give an lowercase image name:
export imageName=fibsem
  1. Build image:
docker build -t $imageName .

Docker run task:

  1. Select a module name that exist under repo directory
export taskName=test

or

export taskName=threshold
or
export taskName=inference

For test purpose the test module will just process an image and output a 128 x 128 thumbnail of it. The threshold algorithm processes single channel SEM images to remove background values (replacing the background with black). The inference tasks performs forward inferencing using a UNET network to perform segmentation used a pre-trained network.

  1. Run docker image
docker run --gpu all -id -v $FIBSEM/snapshot:/snapshot \
-v $FIBSEM/repo:/repo -v $FIBSEM/dataset/input:/input \
-v $FIBSEM/dataset/output:/output  -e module=$taskName \
$imageName
  1. Whenever put new image to the dataset/input directory, it will automatically generate output image into the dataset/output directory.

New module rules:

Create python module and put it under repo directory, name entry point as a function named run.

fibsem's People

Contributors

curtislisle avatar tymiao1220 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.