Git Product home page Git Product logo

kaggle-hubmap-hacking-the-human-vasculature's Introduction

HuBMAP - Hacking the Human Vasculature

Competition Solution Write-up

Environment setup

Build docker image

bash .dev_scripts/build.sh

Set env variables

export DATA_DIR="/path/to/data"
export CODE_DIR="/path/to/this/repo"

Start a docker container

bash .dev_scripts/start.sh all

Prepare data

python tools/prepare_data.py
python tools/drop_dupliates.py

Follow mmdet tutorial to prepare coco dataset.

Directory structure should be as follows.

├── data
│   ├── coco
│   ├── dtrain0i.json
│   ├── dtrain1i.json
│   ├── dtrain_dataset2.json
│   ├── dtrain_dataset2_dropdup.json
│   ├── dtrainval.json
│   ├── dval0i.json
│   ├── dval1i.json
│   ├── polygons.jsonl
│   ├── sample_submission.csv
│   ├── test
│   ├── tile_meta.csv
│   ├── train
│   └── wsi_meta.csv
└── kaggle-hubmap-hacking-the-human-vasculature
    ├── LICENSE
    ├── README.md
    ├── configs
    ├── custom_modules
    ├── docker
    ├── test.py
    ├── tools
    ├── train.py
    └── work_dirs

Training

RTMDet-x (best single model)

python train.py configs/r0.py --amp

Other models

python train.py configs/y0.py --amp

python train.py configs/m0.py --amp

python train.py configs/coco/sb.py --amp
python train.py configs/sb0.py --amp

python train.py configs/coco/s.py --amp
python train.py configs/s0.py --amp

Inference

Check training log for best iteration and use tools/dump_ckpt.py to extract the best checkpoint.

Inference and ensemble could be found here.

kaggle-hubmap-hacking-the-human-vasculature's People

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.