Giter Site home page Giter Site logo

morphologycnn's Introduction

MorphologyCNN

Install packages

Install neuron_morphology package: https://neuron-morphology.readthedocs.io/en/latest/install.html

Download data

Gouwens morphology

Download SWC files from ftp://download.brainlib.org:8811/biccn/zeng/pseq/morph/200526/ into gouwens-data/data/

Extracted features: Download extracted features (SpecimenMetadata.csv) from https://knowledge.brain-map.org/data/1HEYEW7GMUKWIQW37BO/specimens

Scala morphology

Download SWC files from https://download.brainimagelibrary.org/3a/88/3a88a7687ab66069/inhibitory/ into scala-data/inhibitory/

View SWC files

3D morphology viewer: https://neuroinformatics.nl/HBP/morphology-viewer/

Analysis steps

  1. Run collect_training_images.ipynb to generate .png images from the Gouwens and Scala .swc files. This code will also output some metadata required for copying/moving the files into the correct folders for splitting training/validation/test of the model.

  2. Run preprocess.py to downscale images to appropriate sizes

  3. the only dataset subfolders you should run for first set of tests is create_t_type_subfolders.py

  • if you run other scripts for creating data subfolders, you end up with 21 subtypes in the t-type directory?
  • model training code vanilla_cnn_t_type.py requires 20 t-type classes for training to work.
  1. Run vanilla_cnn_t_type.py
  • saves model to model_path = './gouwens-data/models/vanilla_cnn_gouwens_t_type_modified_b2_lr1e-4_e4_rs7_256_vderek'
  • should be able to reload either that model or the previously trained one on github for inference in next step
  1. Run inference_t_type.py
  • test out both versions of model tried.
  • how do scores compare on Scala dataset?

morphologycnn's People

Contributors

derekhoward avatar youngseok-seo 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.