Git Product home page Git Product logo

cellseg's Introduction

cellseg: Multiclass Cell Segmentation

PyPI version Stage Codecov Test Install PyPI license Documentation Status Total Downloads Monthly Downloads Weekly Downloads Maintenance GitHub last commit GitHub issues GitHub issues-closed

Development stage

  • Read Tiff Images

  • Read Non Tiff Images

  • Write Data Transformers and Loaders

  • Write functional model plus scripts

  • Modify model weights/layers

  • Read stacked tiff images/videos

Introduction

cellseg is a PyTorch (torch) based deep learning package aimed at multiclass cell segmentation.

Installation

pip install cellseg 

Or if you want to build from source

git clone [email protected]:Nelson-Gon/cellseg.git
cd cellseg
python setup.py install 

Usage

Script mode

View images

python -m cellseg -d data/train -t "image" -n 4 -s 512

To get help

python -m cellseg --help
#usage: __main__.py [-h] -d IMAGE_DIRECTORY -s IMAGE_SIZE -t TARGET -n NUMBER
#
#optional arguments:
#  -h, --help            show this help message and exit
#  -d IMAGE_DIRECTORY, --image-directory IMAGE_DIRECTORY
#                        Path to image directory containing images and
#                        masks/labels
#  -s IMAGE_SIZE, --image-size IMAGE_SIZE
#                        Size of images
#  -t TARGET, --target TARGET
#                        Target images to show
#  -n NUMBER, --number NUMBER
#                        Number of images to show

Programming mode

Importing relevant modules

from cellseg.data import DataProcessor
from cellseg.model import CellNet
from cellseg.utils import DataProcessor, show_images

Creating a a model object

my_model = CellNet()

Load training data

train_data = DataProcessor(image_dir="data/train/images", label_dir="data/train/images", image_suffix="tif")

View loaded images or masks

show_images(train_data, number = 8, target="image")

Training

cellseg's People

Contributors

nelson-gon avatar

Watchers

 avatar  avatar

cellseg's Issues

Tests fail for python 3.6

  • I have read the wiki and my issue is not
    handled (sufficiently) there or is not answered at all.

Describe the bug

Running tests in python 3.6 fails.

To Reproduce

Clone and run python tests.py under an OS running python 3.6

Expected behavior

Expected tests to run flawlessly or fail in a more expected way.

Unexpected behavior

Modules are not correctly imported in python 3.6.

System Details

OS independent, python 3.6, dev version https://github.com/Nelson-Gon/cellseg/tree/14d33886d44df7704e060cff2a060d29e6bcd68e

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.