GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CenterNet2/tools at master · ThreeParty/CenterNet2

Expand file tree

/

tools

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

tools

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
deploy
deploy
 
 
README.md
README.md
 
 
analyze_model.py
analyze_model.py
 
 
benchmark.py
benchmark.py
 
 
convert-torchvision-to-d2.py
convert-torchvision-to-d2.py
 
 
plain_train_net.py
plain_train_net.py
 
 
train_net.py
train_net.py
 
 
visualize_data.py
visualize_data.py
 
 
visualize_json_results.py
visualize_json_results.py
 
 

README.md

This directory contains a few example scripts that demonstrate features of 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]
  • analyze_model.py

Analyze FLOPs, parameters, activations of a detectron2 model. See its --help for usage.

  • 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.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.