Skip to content

Unsuccessful loading MNIST data for ImageClassifier example: training #41

Answered by sbrunk
hmf asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah the examples definitely need better usage documentation.

The ImageClassifier expects images in directories with the following structure (each folder is a class with examples):

.
├── PetImages
    ├── Cat
    │   ├── 1.jpg
    │   ├── 2.jpg
    │   ├── ...
    └── Dog
        ├── 1.jpg
        ├── 2.jpg
        ├── ...

I've trained a model using this example on the Cat VS Dog dataset (download without requiring a kaggle account). It uses a ResNet implementation.

The simpler LeNet example downloads the MNIST dataset, which has it's own format.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hmf
Comment options

Answer selected by hmf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants