Skip to content

Allow to pass load function in ImageFolder #20

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

Merged
merged 2 commits into from
Jan 1, 2017
Merged

Allow to pass load function in ImageFolder #20

merged 2 commits into from
Jan 1, 2017

Conversation

szagoruyko
Copy link
Contributor

Handy if someone doesn't want to use PIL.

class ImageFolder(data.Dataset):
def __init__(self, root, transform=None, target_transform=None):
def __init__(self, root, transform=None, target_transform=None,
load=default_load):

This comment was marked as off-topic.

This comment was marked as off-topic.

@apaszke apaszke merged commit 5c39840 into pytorch:master Jan 1, 2017
@apaszke
Copy link
Contributor

apaszke commented Jan 1, 2017

Thanks!

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.

2 participants