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

Method scale_by_list

python/singa/image_tool.py:259–265  ·  view source on GitHub ↗

Args: num_case: num of resize cases, must be <= the length of size_list inplace: inplace imgs or not ( return new_imgs)

(self, size_list, num_case=1, inplace=True)

Source from the content-addressed store, hash-verified

257 return self.resize_by_range(rng, inplace)
258
259 def scale_by_list(self, size_list, num_case=1, inplace=True):
260 ''&#x27;
261 Args:
262 num_case: num of resize cases, must be <= the length of size_list
263 inplace: inplace imgs or not ( return new_imgs)
264 ''&#x27;
265 return self.resize_by_list(size_list, num_case, inplace)
266
267 def resize_by_range(self, rng, inplace=True):
268 ''&#x27;

Callers

nothing calls this directly

Calls 1

resize_by_listMethod · 0.95

Tested by

no test coverage detected