Open ahron1 opened 6 days ago
Please leverage this checklist to ensure your code review is thorough before approving
@tazarov Ok, done.
There's now a new ImageURLoader class.
It works without auth
data_loaders.ImageURLoader("https://images.pexels.com/photos/10981514/pexels-photo-10981514.jpeg")
and also with auth:
data_loaders.ImageURLoader("https://url_to_image", "username", "password")
Please check.
Updated ImageLoader in data_loaders.py to accept images from both local URIs and remote URLs. Raised as feature request
Description of changes
load_image
in classImageLoader
inutils/data_loaders.py
to detect whether the passed URI is a remote URL. If it is, then it fetches the remote URL's data and then processes it. If it is not a remote URL, it works the same as before (currently).Test plan
How are these changes tested?
pytest
locally.Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository? Happy to update the documentation myself after the PR is merged.