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

[minor] Use torchvision for data ? #2

Closed
dmudiger opened this issue Sep 11, 2018 · 4 comments
Closed

[minor] Use torchvision for data ? #2

dmudiger opened this issue Sep 11, 2018 · 4 comments

Comments

@dmudiger
Copy link
Collaborator

(X_train, y_train), (X_test, y_test) = cifar10.load_data()

Use torchvision or something similar for data, instead of having to have keras (+TF/Theano backend) for just the data loading :)

@hjmshi
Copy link
Owner

hjmshi commented Sep 12, 2018

OK, let me see if I can change this. The issue with using the Torchvision dataloader is that it is not easily compatible with multi-batch L-BFGS, unless we want to write a dataloader specifically for that. It should work though for full-batch and full-overlap L-BFGS. Is there a way to obtain the dataset in tensor format using torchvision? We could use this to load the dataset then do all of the data loading manually for the optimization algorithm. What do you think?

@dmudiger
Copy link
Collaborator Author

Full-batch should be quite straightforward, but for multi-batch it might need additional changes. In that case we can just stay with this, its not a big deal.

@hjmshi
Copy link
Owner

hjmshi commented Sep 12, 2018

Let me see if I can still load the dataset though through torchvision (without using the dataloader).

@hjmshi
Copy link
Owner

hjmshi commented Sep 12, 2018

It is surprisingly annoying to load the dataset as a tensor through torchvision...do you know how to do this? Also, do you know if PyTorch plans on releasing a dataloader with adaptive batch sizes? If they release something like that, that would make multi-batch much easier to implement (and progressive batching).

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

No branches or pull requests

2 participants