Git Product home page Git Product logo

stardist_pytorch's Introduction

Cell Detection with Star-convex Polygons: PyTorch implementation

This is the pytorch implementation of the paper:

Uwe Schmidt, Martin Weigert, Coleman Broaddus, and Gene Myers.
Cell Detection with Star-convex Polygons.
International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI), Granada, Spain, September 2018. Refer the StarDist repo before you continue.

Installation/Requirements

All the necessary packages to generate ground truth can be found in the StarDist official repository. The code uses the deep learning library: PyTorch, instead of Keras/Tensorflow.
Optional: TensorboardX

Documentation

  • main.py: Start file for training the network. Specify path to dataset, tensorboard log directory etc here.
  • dataloader.py: Simple basic pytorch dataloader for DSB2018.
  • distance_loss.py : Loss function class, as defined in the paper.
  • train.py: Trainer file. Code to load and save checkpoints in accordance with loss and learning rate.
  • load_save_model.py: Boilerplate assisting code for the Trainer class.Used for loading and saving models.
  • predict.py: Script for test set prediction. Specify path to test set and pretrained weights here. User can also change the probability threshold for NMS.
  • metric.py: Unofficial evaluation metric script for calculating average precision of IoUs.

Evaluation

The performance of the model was evaluated on DSB2018 data set. The table shows average precision for several IoU thresholds when probability threshold was 0.4, calculated by metric.py script.

IoU threshold Keras Pytorch
0.5 0.873 0.8698
0.55 0.85 0.844
0.6 0.8203 0.8078
0.65 0.7612 0.7558
0.7 0.6951 0.7128
0.75 0.5980 0.6336
0.8 0.4770 0.5100
0.85 0.3364 0.3713
0.9 0.1880 0.1932

Notes

UNet code adapted from: https://github.com/milesial/Pytorch-UNet

stardist_pytorch's People

Contributors

ashisravindran avatar

Stargazers

JH avatar 蔡徐坤 avatar ML-Dengxun avatar Yingnan Zhao avatar Bao Li avatar Pranathi Vemuri avatar ziqiang avatar HongTao Lin avatar pghero avatar Serdar Yıldız avatar Ajinkya Kulkarni avatar  avatar Xuan Gong avatar phd offer avatar Karol Gotkowski avatar Bald man avatar Bruno Pazos avatar  avatar Arseniy Zemerov avatar Alexandr Kalinin avatar  avatar liuyanice avatar Daniel Härtter avatar Ming Chen avatar neal avatar  avatar A-Dr.Jz avatar  avatar Emily Yunha Shin avatar Ming-Yang Ho avatar  avatar Don Quixote avatar haochen wang avatar  avatar Benjamin Pavie avatar Ervin Áron Tasnádi avatar  avatar Calvin-Khang Ta avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar GitGud avatar paper2code - bot avatar

stardist_pytorch's Issues

3D Stardist and pypi version?

Hello,

Nice initiative, I haven't tried your version yet but it's an interesting project! I was wondering about two things:

  • are you planning to implement the 3D version?
  • are you planning to package this in pypi?

I'll give you more feed back when I try the pytorch version!

Cheers

Multi-class segmentation

Hello,
Thank you for providing this code :)
Can the code be modified for multiclass segmentation?
I have images which contain nuclei of two different classes.

Thank you,
Sahar

Add License

Thanks for the port of stardist to pytorch. If possible, could you please add a license, so that the code can be used in other projects as well?
Thanks a lot!

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.