MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / crop_boxes

Function crop_boxes

slowfast/datasets/transform.py:104–120  ·  view source on GitHub ↗

Peform crop on the bounding boxes given the offsets. Args: boxes (ndarray or None): bounding boxes to peform crop. The dimension is `num boxes` x 4. x_offset (int): cropping offset in the x axis. y_offset (int): cropping offset in the y axis. Returns:

(boxes, x_offset, y_offset)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

random_cropFunction · 0.70
uniform_cropFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected