Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.65 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.65 KB

Detectron 2 for Training on Pathologies

Module for utilizing Detectron 2 to train models on radiological images.

Installations

Dataset preparation

  • Data should be present as processed .png's in chosen directories specified in flags.
  • Example of data directory structure and form.
  • Include test_meta.csv if you wish to predict on testset.

Basic Script Preparation

Training

python Detectron2_train/detectron2_train.py

Notes

  • Some linux servers may require switching off torch.cuda.synchronize calls in Loss Hook and Detectron2 Evaluator
  • Change Device flag and directories.

Outputs

  • If left uncommented, after training is completed, metrics.json from output directory will be used to generate loss curves and AP values if validation set is present.
  • Predictions on test set in requisite Kaggle submissions format will automatically be generated.
  • From the formed csv submission, annotations will be drawn on sample with confidence bounds on BBs.