Should we add feature to download image from internet as input ? #551
abhishek0093
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently load_image(image_path: str) -> Tuple[np.array, torch.Tensor] expects image to be available on local . Would it be better to add another boolean param called "is_url" and default it to false so that it don't break anything existing. But if someone wants to give url instead of local path he can set this to true and provide url in image_path param ? We download image from the url using requests and BytesIO .
Please let me know what you guys think and I can submit PR for the same.
Beta Was this translation helpful? Give feedback.
All reactions