MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / get_size

Function get_size

util/preprocessing.py:84–88  ·  view source on GitHub ↗
(ori_shape, size, max_size=None)

Source from the content-addressed store, hash-verified

82 return (ow, oh)
83
84 def get_size(ori_shape, size, max_size=None):
85 if isinstance(size, (list, tuple)):
86 return size[::-1]
87 else:
88 return get_size_with_aspect_ratio(ori_shape, size, max_size)
89
90 size = get_size(ori_shape, size, max_size)
91

Callers 1

resizeFunction · 0.70

Calls 1

Tested by

no test coverage detected