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

Function get_image

examples/onnx/superresolution.py:44–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def get_image():
45 # download image
46 image_url = 'https://s3.amazonaws.com/model-server/inputs/kitten.jpg'
47 img = Image.open(check_exist_or_download(image_url))
48 return img
49
50
51class MyModel(sonnx.SONNXModel):

Callers 1

superresolution.pyFile · 0.70

Calls 1

check_exist_or_downloadFunction · 0.90

Tested by

no test coverage detected