MCPcopy Create free account
hub / github.com/BAI-Yeqi/OpenPCSeg / get_pad_params

Function get_pad_params

tools/utils/common/common_utils.py:107–122  ·  view source on GitHub ↗

Get padding parameters for np.pad function Args: desired_size: int, Desired padded output size cur_size: int, Current size. Should always be less than or equal to cur_size Returns: pad_params: tuple(int), Number of values padded to the edges (before, after)

(desired_size, cur_size)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected