Skip to content

arastogi1997/Detectron2-train

Repository files navigation

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.

About

Detectron2 Trainer framework for Medical Imaging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages