MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleYOLO / generate_scale

Method generate_scale

deploy/python/preprocess.py:82–106  ·  view source on GitHub ↗

Args: im (np.ndarray): image (np.ndarray) Returns: im_scale_x: the resize ratio of X im_scale_y: the resize ratio of Y

(self, im)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__call__Method · 0.95

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected