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

a bug come from DeepNeuralNetword #15

Open
hjk1122 opened this issue Apr 13, 2020 · 2 comments
Open

a bug come from DeepNeuralNetword #15

hjk1122 opened this issue Apr 13, 2020 · 2 comments

Comments

@hjk1122
Copy link

hjk1122 commented Apr 13, 2020

I tested it with a collection of my own pictures,but throw a bug:
System.FormatException:“Tensorflow exception triggered while loading model.”
InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.

from:
var pipeline = context.Transforms.Conversion.MapValueToKey("LabelKey", "Label", keyOrdinality: Microsoft.ML.Transforms.ValueToKeyMappingEstimator.KeyOrdinality.ByValue)
.Append(context.Model.ImageClassification(
"ImagePath",
"LabelKey",
arch: Microsoft.ML.Transforms.ImageClassificationEstimator.Architecture.ResnetV2101,
epoch: 100,
batchSize: 10,
metricsCallback: Console.WriteLine,
validationSet: validationData));
图片

I don't know why. help me,please,thank you

@hjk1122 hjk1122 changed the title a debug from DeepNeuralNetword a bug come from DeepNeuralNetword Apr 13, 2020
@jwood803
Copy link
Owner

Looks like this was reported on their side as well as an issue. Try the preview version of ML.NET to see if that helps. If not, you may need to use their workaround to delete the protobuf file.

@hjk1122
Copy link
Author

hjk1122 commented Apr 14, 2020

I wonder if there is a problem with the image format. I think to try your image folder "images",thank you very much

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