GithubHelp home page GithubHelp logo

htem / raygun Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 148.19 MB

An image enhancement and segmentation pipeline for generating connectomic reconstructions from X-ray holographic nanotomography, using CycleGANs, Local Shape Descriptors, and Mutex Watershed. Built with PyTorch, Daisy, and Gunpowder.

License: GNU Affero General Public License v3.0

Python 97.40% Shell 2.60%
unet-3d gunpowder tomography connectomics xray deep-learning pytorch generative-adversarial-network image-enhancement resnet

raygun's Introduction

test build

Raygun

The goal of this repository is to provide an extendable toolbox for large-scale experimentation with deep learning techniques for image enhancement and segmentation of N-dimensional biological imaging data. It is designed to support high-performance computing clusters and utilize GPU-acceleration.

Training datasets, as well as model checkpoints used in the paper will be made accessible soon!

Install:

Run the following -->

conda create -n raygun python=3.9 tensorflow pytorch torchvision torchaudio cudatoolkit=11.3 affogato -c pytorch -c nvidia -c conda-forge 
conda activate raygun
pip install git+https://github.com/htem/raygun

Should you run into gcc / boost errors when conda/pip installing raygun, try installing libboost first:

sudo apt-get update
sudo apt-get install libboost-all-dev

Example train:

raygun-train path/to/train_config.json

raygun's People

Contributors

brianreicher avatar dependabot[bot] avatar rhoadesscholar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

brianreicher

raygun's Issues

Fix padding on JAX ResNet

Torch/JAX don't share many parallels when it comes to padding in Haiku - reconfiguring how to implement padding for JAX resents

Fix JAX resource exhaustion/multi-threading

JAX network testing running into two main issues, look to collapse one at a time:

  • Single GPU training is able to load the untrained network onto the GPU but unable to allocate resources to run convolutions
  • Multi-threaded training splits the first input dimension (batch size=16) into separate (4,4) dimensions, causing the rank of the input tensors to be expanded

Add Docstrings

(Once refactoring complete and fully tested.)
Add Docstrings to all functions. Priority order:

  • class.__init__'s
  • standalone functions
  • other major functions

Inheritance args bug with ResNet & NLayerDiscriminator

__init__ functions claim to be overloaded with parameters upon calling, though initialization seems correct:

  • ResNet call for ResNetBlock2D/3D calls:
    TypeError: __init__() takes from 2 to 3 positional arguments but 6 were given

  • NLayerDiscriminator call for each dimension class:
    TypeError: __init__() takes from 2 to 3 positional arguments but 13 were given

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.