All Projects → zhaoxuanma → Deeplearning-digital-pathology

zhaoxuanma / Deeplearning-digital-pathology

Licence: other
Full package for applying deep learning to virtual slides.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Deeplearning-digital-pathology

colorchecker-detection
Multiple ColorChecker Detection. This code implements a multiple colorChecker detection method, as described in the paper Fast and Robust Multiple ColorChecker Detection.
Stars: ✭ 51 (-13.56%)
Mutual labels:  caffe
Stochastic-Quantization
Training Low-bits DNNs with Stochastic Quantization
Stars: ✭ 70 (+18.64%)
Mutual labels:  caffe
Caffe BEGAN
Caffe/C++ implementation of Boundary Equilibrium Generative Adversarial Networks paper for face generation
Stars: ✭ 22 (-62.71%)
Mutual labels:  caffe
crnn.caffe
crnn.caffe
Stars: ✭ 76 (+28.81%)
Mutual labels:  caffe
caffe-wrn-generator
Caffe Wide-Residual-Network (WRN) Generator
Stars: ✭ 19 (-67.8%)
Mutual labels:  caffe
PCN-Windows
No description or website provided.
Stars: ✭ 21 (-64.41%)
Mutual labels:  caffe
caffemodel2json
A small tool to dump Caffe's *.caffemodel to JSON for inspection
Stars: ✭ 40 (-32.2%)
Mutual labels:  caffe
caffe example
install script and example for clCaffe which will run caffe by OpenCL (this is for https://github.com/01org/caffe/tree/inference-optimize)
Stars: ✭ 12 (-79.66%)
Mutual labels:  caffe
caffe-unet-docker
The U-Net Segmentation server (caffe_unet) for Docker
Stars: ✭ 25 (-57.63%)
Mutual labels:  caffe
dehaze
[Preprint] "Improved Techniques for Learning to Dehaze and Beyond: A Collective Study"
Stars: ✭ 46 (-22.03%)
Mutual labels:  caffe
onnx2caffe
pytorch to caffe by onnx
Stars: ✭ 341 (+477.97%)
Mutual labels:  caffe
Deep-Learning-with-Caffe
My tests and experiments on Caffe, the deep learning framework by Berkeley Vision and Learning Center (BVLC) and its contributors.
Stars: ✭ 30 (-49.15%)
Mutual labels:  caffe
fooddist
An open-source food image embedding model
Stars: ✭ 26 (-55.93%)
Mutual labels:  caffe
SWCaffe
A Deep Learning Framework customized for Sunway TaihuLight
Stars: ✭ 37 (-37.29%)
Mutual labels:  caffe
caffe-mobilenet v2
caffe based mobilenet v2 deploy
Stars: ✭ 29 (-50.85%)
Mutual labels:  caffe
VideoAudit
📹 一个短视频APP视频内容安全审核的思路调研及实现汇总
Stars: ✭ 221 (+274.58%)
Mutual labels:  caffe
fpga caffe
No description or website provided.
Stars: ✭ 116 (+96.61%)
Mutual labels:  caffe
deep-learning-platforms
deep-learning platforms,framework,data(深度学习平台、框架、资料)
Stars: ✭ 17 (-71.19%)
Mutual labels:  caffe
Classification Nets
Implement popular models by different DL framework. Such as tensorflow and caffe
Stars: ✭ 17 (-71.19%)
Mutual labels:  caffe
Cytomine-core
Cytomine-Core is the main web server implementing the Cytomine API
Stars: ✭ 70 (+18.64%)
Mutual labels:  digital-pathology

Deeplearning-digital-pathology

This repository contains utilities for virtual slides and images classification and semantic segmentation with Keras and Caffe and an extension class of ImageDataGenerator of Keras to generate batches of images with data augmentation for segmentation. Demo code is provided for reference.

Requirement

Python 2.7
OpenCV 3.4
Numpy 1.14
Tensorflow 1.7
Keras 2.1
OpenSlide 1.1
Caffe 0.15 (optional)

Getting started

slide_demo.py It shows an example of using the Keras or Caffe model to segment a whole virtual slide or classify slide in grid and saving the results.

Segmentation: Alt text

Classification: Alt text

image_demo.py It shows an example of using the Keras or Caffe model to segment or classify images from a folder and saving the results.

train_segmentation_demo.py It shows an example of training a segmentation model from scratch.

Contents

See comments or use help for detailed function usage.

ImageDataGeneratorEXT.py

An extension of ImageDataGenerator of Keras for semgentation images iteration , with similiar api of flow_from_directory.

The structure of the image directory would be like:

"directory"
├── "image_subfolder"
│   ├── image1.png
│   ├── image2.png
│   └── ...
└── "mask_subfolder"
    ├── image1.png
    ├── image2.png
    └── ...

slide_utils.py

Virtual slide class (Slideobject) for retrieving image batches and results reconstruction.

  • retrieve_tiles_to_queue_thread Retrieve image batches and put into a queue waiting for analysis.

  • reconstruct_segmentation_queue_to_level Reconstruct segmentation results on top of selected layer image.

  • reconstruct_classification_queue_to_level Reconstruct classification results on top of selected layer image.

  • preprocess_img Rewrite to include customized image preprocessing.

  • gray_code Rewrite based on given code to change color for each category for result_mask.

  • color_code Rewrite based on given code to change color for each category for result_rgb.

image_utils.py

Image class (Imageobject) for retrieving image batches and results reconstruction.

  • retrieve_tiles_to_queue_thread Retrieve image batches and put into a queue waiting for analysis.

  • reconstruct_segmentation_queue_to_file Reconstruct segmentation results on top of original image and save.

  • reconstruct_classification_queue_to_file Reconstruct classification results on top of original image and save.

  • preprocess_img Rewrite to include customized image pre-processing.

  • gray_code Rewrite based on given code to change color for each category for result_mask.

  • color_code Rewrite based on given code to change color for each category for result_rgb.

caffe_utils_queue.py

Caffe class (Caffeobject) for forwarding images batch to neural network.

  • forward_from_queue_to_queue Forward batch in data queue to neural network and put results in result queue.

tf_utils_queue.py

Tensorflow (Keras) class (TFobject) for forwarding images batch to neural network.

  • forward_from_queue_to_queue Forward batch in data queue to neural network and put results in result queue.

Related publications

  • Semantic Segmentation of Colon Glands in Inflammatory Bowel Disease Biopsies. Z Ma, Z Swiderska-Chadaj, N Ing, H Salemi, D McGovern, B Knudsen, A Gertych. Information Technologies in Biomedicine, Kamień Śląski, Poland, June 2018.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].