Giter Club home page Giter Club logo

patchtcga's Introduction

License

PatchTCGA

Paper: Large-scale pretraining on pathological images for fine-tuning of small pathological benchmarks

Overview

DATASETS

We engineered three patch-based one large and two small datasets. They are designed to conduct large-scale training and downstream benchmarking, respectively. They have the same microns per pixel (MPP) of 0.39. MD5 checksums are available in the download links. Please refer the original paper for details.

Patch TCGA in 200μm (PTCGA200)

Donwload Link: https://drive.google.com/drive/folders/18CmL-WLyppK1Rk29CgV7ib5MACFzg5ei?usp=drive_link

License: NIH Genomic Data Sharing (GDS) Policy

Use the snippet below to make the original archive file from divided files.

$ cat PTCGA200_p_* > PTCGA200.tar.gz

To reproduce the same training, validation, and testing split in the original paper, download and load the 3fold_dict_idx_filenames.pickle file using dataset_utils.py.

Patch Camelyon in 200μm (PCam200):

Donwload Link: https://drive.google.com/drive/folders/1Oh7onawKsDW5ScamVO5ByXFgqdYJ39sK?usp=drive_link

License: CC0 License: CC0-1.0

Segmentation PANDA in 200μm (SegPANDA200):

Donwload Link: https://drive.google.com/drive/folders/1zg_C37B_1HR6miRFuTwPKmueaJzvO-GD?usp=drive_link

License: CC BY-SA-NC 4.0 License: CC BY-NC-SA 4.0

Getting Started

Requirements

  • pytorch >=1.8.1
  • torchvision
  • kornia
  • Pillow 8.2.0
  • numpy
  • tqdm 3.60.0
  • h5py

Train

Download datasets and modify the config.py file. Then, create runs folder and run the following command.The training script is designed for distributed training. If you want to train on multiple nodes, provide host name lists and master node address in the config.py file and run the script in each node.

python train.py

To train BYOL, change the config 'self_superversed' : 'byol'.

Self-supervised learning was performed using the repo below except for BYOL.

Pretrained Models

Under permission process.

Citation

Provisional

@CoRR{PatchTCGA,
  title={Large-scale pretraining on pathological images for fine-tuning of small pathological benchmarks},
  author={Masataka Kawai, Nriaki Ota, Shinsuke Yamaoka},
  booktitle={},
  year={2023}
}

Acknowledgement

We thank the authors of the original datasets for their efforts.

We also thank the authors of the following repositories for their contributions and references.

This work is based on results obtained from a project, JPNP20006, commissioned by the New Energy and Industrial Technology Development Organization (NEDO).

patchtcga's People

Contributors

enigmanx20 avatar

Stargazers

wangyh97 avatar junjianli avatar

Watchers

 avatar

patchtcga's Issues

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.