Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using the image_preloader the images can be loaded from an URL. #875

Merged
merged 1 commit into from
Sep 1, 2017
Merged

Conversation

gboeer
Copy link
Contributor

@gboeer gboeer commented Aug 17, 2017

This is a contribution for #866 to allow the usage of URLs as image source when using an image_preloader.

This implementation uses the Python3 versions of the IO and urllib modules.

Currently every image path is parsed by urlparse to see if it is a URL or local file path.

Another possibility would be to configure the image preloader at instantiation for a mode (e.g. use only internet images, use only local files or a mixed mode) to disable the parsing e.g. if only local files are used.

imload_lena

Copy link
Member

@aymericdamien aymericdamien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding that! :)

@aymericdamien aymericdamien merged commit b69546b into tflearn:master Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants