Skip to content

Masaaaato/RSNABreast7thPlace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RSNABreast7thPlace

RSNA Screening Mammography Breast Cancer Detection

The kaggle competition overview is here. This repository is for our 7th solution (Team: luddite&MT) writeup. Short solution summary is here(solution summary).

Preparation

  1. Please make sure to put train.csv downloaded from kaggle in data/input
  2. Please refer to here to prepare train images with H1520xW912 and put them into data/input/train_images directory.
  3. [Option] If you would like to use sigmoid-windowing applied images, please refer to here to get windowing information in advance. If the given information are added on the dataframe from train.csv as new columns, train.csv of step1 can be replaced by this.
  4. [Option] If you would like to use external dataset, please refer to VinDr webpage to download corresponding images and annotation file. Make sure to put them in data/input/external_data and data/input, respectively.

Train

  1. Train only using kaggle dataset like below.
    python -u src/train.py configs/config0.yaml
  2. Conduct pseudolabeling on external dataset.
    python -u src/external_pseudolabeling.py configs/config0.yaml
  3. Change the config file as follows according to your purpose.
    For breast-level/external dataset/no windowing: config1.yaml
    For laterality-level/external dataest/no windowing: config2.yaml
    For breast-level/external dataset/windowing: config3.yaml
    For laterality-level/external dataset/windowing: config4.yaml

Inference

  • To complete inference faster, we compiled the pytorch models with Torch-tensorRT in advance. I noticed that the compilation did not work as usual for the 'tf' type of EfficientNet due to its dynamic padding function, so I edited the source code and used it. See here.
  • Full inference code is open as the kaggle notebook. Please see this.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages