Giter VIP home page Giter VIP logo

deeptunel's Introduction

DeepTunel

DeepTunel: Constructing Datasets and Training Deep Networks for the Direct Identification of Apoptosis Cells from H&E Staining Images

Accurate evaluation of apoptosis in tumor tissues is essential for the diagnosis and treatment of tumors. Terminal deoxynucleotidyl transferase dUTP nick end labeling (TUNEL) has been widely employed for detecting apoptotic cells in tissue sections for 30 years; however, its complex nature may yield erroneous results. Herein, a Deep Tunel network, capable of identifying and quantitatively analyzing apoptosis on H&E-stained tissue sections, is proposed, and its performance was assessed using 73 samples from four cancer models in three animal species (number of patches=44,189). The proposed network exhibited high accuracy (98.5%) in identifying apoptotic cells and was found to be 17.4% more precise than the current gold standard. Moreover, in comparison to pathologists, the proposed network exhibited a threefold increase in accuracy and was 100 times faster in detecting apoptotic cells. Thus, the proposed network may offer significant convenience and accuracy for investigating apoptosis in future studies.

Install For Linux -->

1. Prepare data

Please refer to datasets

2. Prepare environment

Step 1. Create a conda environment and activate it.

conda create --name cvpods python=3.6 -y
conda activate cvpods

Step 1. Install corresponding version of torch and torchvision depends on the version of Cuda compilation tools you use.

Fisrt, check the version of Cuda compilation tools by:

nvcc -V

Assume your Cuda compilation tools vesion is 11.1,

If your machine is able to access the Internet, simply install using

pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html

Or, you can install them offline, download torch and torchvision by the following urls: [torch]https://download.pytorch.org/whl/cu111/torch-1.8.0%2Bcu111-cp36-cp36m-linux_x86_64.whl [torchvision]https://download.pytorch.org/whl/cu111/torchvision-0.9.0%2Bcu111-cp36-cp36m-linux_x86_64.whl

if your platform is Windows, download torch and torchvision by the following urls: [torch]https://download.pytorch.org/whl/cu111/torch-1.8.0%2Bcu111-cp36-cp36m-win_amd64.whl [torchvision]https://download.pytorch.org/whl/cu111/torchvision-0.9.0%2Bcu111-cp36-cp36m-win_amd64.whl

Upload these two whl files to your offline machine, and install them by:

pip install /path/torch-1.8.0%2Bcu111-cp36-cp36m-linux_x86_64.whl
pip install /path/torchvision-0.9.0%2Bcu111-cp36-cp36m-linux_x86_64.whl

Step 2. Install other needed packages

# (for Windows)conda install libpython m2w64-toolchain -c msys2
pip install -r requirements.txt

Step 3. Build cvpods as follows:

cd /path/DeepTunel
pip install -e .

4. Training

You can train our mothod DeepTunel on the downloaded datasets by the following command:

bash tools/train.sh

5. Custom datasets

If you want to train our method DeepTunel on your custom datasets, you need to do some extra jobs depending on your custom datasets as follows:

We takes datasets MIDOG2022 as an example. We have MIDOG images_path, annotations_json.

link MIDOG dataset to DeepTunel root by:

ln -s "/your-path/MIDOG2022/" "/DeepTunel/datasets/MIDOG2022"

deeptunel's People

Contributors

xinggangw avatar wulianjun-112 avatar

Stargazers

 avatar

Watchers

Tianheng Cheng avatar  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.