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

Function random_crop

slowfast/datasets/transform.py:123–156  ·  view source on GitHub ↗

Perform random spatial crop on the given images and corresponding boxes. Args: images (tensor): images to perform random crop. The dimension is `num frames` x `channel` x `height` x `width`. size (int): the size of height and width to crop on the image. b

(images, size, boxes=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

crop_boxesFunction · 0.70

Tested by

no test coverage detected