Searched refs:new_shape (Results 1 – 1 of 1) sorted by relevance
| /OK3568_Linux_fs/external/rknn-toolkit2/examples/onnx/yolov5/ |
| H A D | test.py | 211 def letterbox(im, new_shape=(640, 640), color=(0, 0, 0)): argument 214 if isinstance(new_shape, int): 215 new_shape = (new_shape, new_shape) 218 r = min(new_shape[0] / shape[0], new_shape[1] / shape[1]) 223 dw, dh = new_shape[1] - new_unpad[0], new_shape[0] - new_unpad[1] # wh padding
|