Giter Club home page Giter Club logo

rsna-pneumonia-detection-challenge's Introduction

RSNA Pneumonia Detection Challenge

This repository is the implementation of RSNA Pneumonia Detection Challenge. The project compares and analyzes the performance of object detection models such as Faster/Cascade RCNN, Retinanet and Swin Transformer on RSNA dataset. Also, some ensemble and post processing methods are used in this project.

Installation

In this project, framework MMDetection is used. The package should be installed first to implement further analysis. Refer to MMDetection official installation for more information.

# Create a conda virtual environment and activate it.
conda create -n openmmlab python=3.7 -y
conda activate openmmlab

# Install PyTorch and torchvision following the official instructions
conda install pytorch torchvision -c pytorch

# Install MMDetection
pip install openmim
mim install mmdet

Download & Preprocess Dataset

The dataset used in this project could be downloaded using the folloing kaggle command or via this link. To transform labels into Coco dataset style, run the following command:

kaggle competitions download -c rsna-pneumonia-detection-challenge
cd utils
python coco_formatter.py

Training Models

Import the customized model configurations into MMDetection configs directory first and then run the training script.

mv <model name>/<configs.py> <path of mmdetection>/config/<model name>

cd mmdetection
python tools/train.py configs/<model name>/<configs.py>

The weights of the models above is saved in Drive: Trained Models

Inference

To infer the testing images using trained model, run this to generate bbox file in .json format

cd mmdetection
./tools/dist_test.sh \
    /work_dirs/<model name>/<model configs.py> \
    /work_dirs/<mode name>/<model weights.pth> \
    1 \
    --format-only \
    --options "jsonfile_prefix=./<inference filename>"

To post-process the result and submit the answer to kaggle, run submission.py, ensemble.py and resize_submission.py in order.

Results

TBD

rsna-pneumonia-detection-challenge's People

Contributors

sam19980301 avatar

Watchers

 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.