Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Make my a training with my own images #56

Closed
FrancoCapraro opened this issue Oct 26, 2018 · 3 comments
Closed

Make my a training with my own images #56

FrancoCapraro opened this issue Oct 26, 2018 · 3 comments

Comments

@FrancoCapraro
Copy link

FrancoCapraro commented Oct 26, 2018

Hi, i have a pack of images and i want to make the training based on them.
I saw (as example) that the mnist.py (from BNN-PYNQ/bnn/src/training) ** import the datasets from pylearn2** (from pylearn2.datasets.mnist import MNIST), inside of this i can see :

t10k-images-idx3-ubyte
train-images-idx3-ubyte
t10k-labels-idx1-ubyte
train-labels-idx1-ubyte

So here is my question. How can i do my own "ubyte files" from my own pack of images to do the training of them?
You have some script to do that ?
Do you used pylearn2 ?(because i read that its obsolete from may of 2017)

@giuliogamba
Copy link
Contributor

This is not a question related to this release, while a Machine learning question.
Nonetheless, please check here, it should help you generating your own dataset.

@FrancoCapraro
Copy link
Author

This is not a question related to this release, while a Machine learning question.
Nonetheless, please check here, it should help you generating your own dataset.

sorry for that and thank you for your help !

@nickfraser
Copy link
Collaborator

Just a quick follow-up, you can also import your images as numpy arrays if you wish. If you print the dimensions of the arrays for inputs and for labels you should be able to see what's going on.

You would only need to replace those arrays with your preferred dataset. If everything is in the same order and the same size, everything should work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants