OWOD/tools
Joseph d601bbe750 Auxillary changes (CVPR-21 submit tip) 2020-11-22 23:07:07 +05:30
..
deploy Detectron2 2020-09-29 05:47:18 +05:30
README.md Detectron2 2020-09-29 05:47:18 +05:30
analyze_model.py Detectron2 2020-09-29 05:47:18 +05:30
benchmark.py Detectron2 2020-09-29 05:47:18 +05:30
convert-torchvision-to-d2.py Detectron2 2020-09-29 05:47:18 +05:30
plain_train_net.py Detectron2 2020-09-29 05:47:18 +05:30
plot_energy.py - Changes to data-modelling 2020-11-03 16:59:41 +05:30
plot_tsne.py Auxillary changes (CVPR-21 submit tip) 2020-11-22 23:07:07 +05:30
train_net.py - Adding voc style coco 2020-10-26 09:27:36 +05:30
tsne.py - Changes to data-modelling 2020-11-03 16:59:41 +05:30
visualize_data.py Detectron2 2020-09-29 05:47:18 +05:30
visualize_json_results.py Detectron2 2020-09-29 05:47:18 +05:30

README.md

This directory contains a few scripts that use detectron2.

  • train_net.py

An example training script that's made to train builtin models of detectron2.

For usage, see GETTING_STARTED.md.

  • plain_train_net.py

Similar to train_net.py, but implements a training loop instead of using Trainer. This script includes fewer features but it may be more friendly to hackers.

  • benchmark.py

Benchmark the training speed, inference speed or data loading speed of a given config.

Usage:

python benchmark.py --config-file config.yaml --task train/eval/data [optional DDP flags]
  • visualize_json_results.py

Visualize the json instance detection/segmentation results dumped by COCOEvalutor or LVISEvaluator

Usage:

python visualize_json_results.py --input x.json --output dir/ --dataset coco_2017_val

If not using a builtin dataset, you'll need your own script or modify this script.

  • visualize_data.py

Visualize ground truth raw annotations or training data (after preprocessing/augmentations).

Usage:

python visualize_data.py --config-file config.yaml --source annotation/dataloader --output-dir dir/ [--show]

NOTE: the script does not stop by itself when using --source dataloader because a training dataloader is usually infinite.