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

Function random_resized_crop

slowfast/datasets/transform.py:544–576  ·  view source on GitHub ↗

Crop the given images to random size and aspect ratio. A crop of random size (default: of 0.08 to 1.0) of the original size and a random aspect ratio (default: of 3/4 to 4/3) of the original aspect ratio is made. This crop is finally resized to given size. This is popularly used to

(
    images,
    target_height,
    target_width,
    scale=(0.8, 1.0),
    ratio=(3.0 / 4.0, 4.0 / 3.0),
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

_get_param_spatial_cropFunction · 0.85

Tested by

no test coverage detected