MCPcopy Create free account
hub / github.com/VainF/DeepLabV3Plus-Pytorch / get_params

Method get_params

utils/ext_transforms.py:350–365  ·  view source on GitHub ↗

Get parameters for ``crop`` for a random crop. Args: img (PIL Image): Image to be cropped. output_size (tuple): Expected output size of the crop. Returns: tuple: params (i, j, h, w) to be passed to ``crop`` for random crop.

(img, output_size)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected