MCPcopy Create free account
hub / github.com/apache/singa / scale

Function scale

python/singa/image_tool.py:136–139  ·  view source on GitHub ↗

Scale the image to make the smaller side be at the give size This method is to replace original resize

(img, small_size)

Source from the content-addressed store, hash-verified

134
135
136def scale(img, small_size):
137 '''Scale the image to make the smaller side be at the give size
138 This method is to replace original resize'''
139 return resize(img, small_size)
140
141
142def resize_by_hw(img, size):

Callers

nothing calls this directly

Calls 1

resizeFunction · 0.70

Tested by

no test coverage detected