-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Image Classification API] Schema mismatch when loading images using file paths #4319
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
Comments
In order for the model to train using 1.4.0-preview2, see this version of the code. It appears now only in-memory images are supported. Another issue that comes up when using in-memory images is the Phase: Bottleneck Computation, Dataset used: Train, Image Index: 1, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 2, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 3, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 4, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 5, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 6, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 7, Image Name:
Phase: Bottleneck Computation, Dataset used: Train, Image Index: 8, Image Name: |
With in-memory images there is no concept of "file path" or "image name", you can just modify the callback to not display Image Name. Please refer to our samples on how to pass in-memory images as input during training. |
@codemzs - But I think the main issue here happens when NOT using in-memory images but training with image paths only, right Luis? |
Please refer to my sample first it shows how to use image paths when training |
After looking into it, you always have to get the files into |
This is not a breaking change as the API is in preview. Second, this is no different from any other trainer where you need to feed features as float array and to do that you need to apply zero or more steps (transformations) to the input. |
Okay. Thanks. |
System information
Issue
Updated from Microsoft.ML 1.4.0-preview to 1.4.0-preview2. Using code that worked, I ran into an issue when loading images.
An ArgumentOutOfRangeException was thrown due to a schema mismatch.
The model to train.
Source code / logs
Repo with source code : https://github.com/luisquintanilla/DeppLearning_ImageClassification_API
This repo uses 1.4.0-preview and works in training a model. If the same code is used with 1.4.0-preview2, the error mentioned in this issue occurs.
The text was updated successfully, but these errors were encountered: