Skip to content

hbb2obb-eval

Scores predicted OBBs against ground truth. Guide: Evaluate.

usage: hbb2obb-eval [-h] [--version] [--excluded_classes EXCLUDED_CLASSES [EXCLUDED_CLASSES ...]]
                    [--iou_threshold IOU_THRESHOLD] [--class_agnostic] [--map_path MAP_PATH]
                    [--exclude_edge_cases] [--edge_tolerance EDGE_TOLERANCE]
                    [--img_width IMG_WIDTH] [--img_height IMG_HEIGHT] [--debug] [--no_bar]
                    gt_dir pred_dir

Evaluate OBB predictions against ground truth

positional arguments:
  gt_dir                Directory containing ground truth OBB annotations
  pred_dir              Directory containing predicted/converted OBB annotations

options:
  -h, --help            show this help message and exit
  --version, -V         show program's version number and exit
  --excluded_classes EXCLUDED_CLASSES [EXCLUDED_CLASSES ...], -e EXCLUDED_CLASSES [EXCLUDED_CLASSES ...]
                        Class IDs to exclude from evaluation
  --iou_threshold IOU_THRESHOLD, -t IOU_THRESHOLD
                        IoU threshold for considering a match (default: 0.1)
  --class_agnostic, -ca
                        Evaluate in class-agnostic mode (match boxes regardless of class labels)
  --map_path MAP_PATH, -mp MAP_PATH
                        Path to label map YAML file (optional)
  --exclude_edge_cases, -exc
                        Exclude boxes that touch image edges from evaluation
  --edge_tolerance EDGE_TOLERANCE, -et EDGE_TOLERANCE
                        Tolerance in pixels for detecting boxes at image edges (default: 1)
  --img_width IMG_WIDTH, -iw IMG_WIDTH
                        Image width for edge case detection (required if --exclude_edge_cases is
                        used)
  --img_height IMG_HEIGHT, -ih IMG_HEIGHT
                        Image height for edge case detection (required if --exclude_edge_cases is
                        used)
  --debug, -d           Enable debug mode to print detailed matching information
  --no_bar, -nb         Disable tqdm progress bar display