objectscope.anchor_bbox_utils
Classes
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generate a tensor storing canonical anchor boxes, which are all anchor |
|
|
|
|
|
|
|
Module Contents
- objectscope.anchor_bbox_utils.evolve(sizes, ratios, gt_wh, iterations=10000, probability=0.9, muy=1, sigma=0.05, fit_fn=fitness, verbose=False)[source]
- objectscope.anchor_bbox_utils.generate_cell_anchors(sizes=(32, 64, 128, 256, 512), aspect_ratios=(0.5, 1, 2))[source]
Generate a tensor storing canonical anchor boxes, which are all anchor boxes of different sizes and aspect_ratios centered at (0, 0). We can later build the set of anchors for a full feature map by shifting and tiling these tensors (see meth:_grid_anchors).
- Parameters:
sizes (tuple[float])
aspect_ratios (tuple[float]])
- Returns:
- Array of shape (len(sizes) * len(aspect_ratios), 4) storing anchor boxes
in XYXY format.