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

Method resize_by_range

python/singa/image_tool.py:267–274  ·  view source on GitHub ↗

Args: rng: a tuple (begin,end), include begin, exclude end inplace: inplace imgs or not ( return new_imgs)

(self, rng, inplace=True)

Source from the content-addressed store, hash-verified

265 return self.resize_by_list(size_list, num_case, inplace)
266
267 def resize_by_range(self, rng, inplace=True):
268 '''
269 Args:
270 rng: a tuple (begin,end), include begin, exclude end
271 inplace: inplace imgs or not ( return new_imgs)
272 '''
273 size_list = list(range(rng[0], rng[1]))
274 return self.resize_by_list(size_list, 1, inplace)
275
276 def resize_by_list(self, size_list, num_case=1, inplace=True):
277 '''

Callers 2

scale_by_rangeMethod · 0.95
image_transformFunction · 0.80

Calls 1

resize_by_listMethod · 0.95

Tested by

no test coverage detected