MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / download_image

Function download_image

demo/Diffusion/utilities.py:1173–1175  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

1171 return mask, masked_image
1172
1173def download_image(url):
1174 response = requests.get(url)
1175 return Image.open(BytesIO(response.content)).convert("RGB")
1176
1177def add_arguments(parser):
1178 # Stable Diffusion configuration

Callers 2

demo_img2img.pyFile · 0.90
demo_inpaint.pyFile · 0.90

Calls 2

getMethod · 0.45
convertMethod · 0.45

Tested by

no test coverage detected