MLNetExamples icon indicating copy to clipboard operation
MLNetExamples copied to clipboard

a bug come from DeepNeuralNetword

Open hjk1122 opened this issue 5 years ago • 2 comments

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 avatar Apr 13 '20 12:04 hjk1122

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.

jwood803 avatar Apr 13 '20 15:04 jwood803

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

hjk1122 avatar Apr 14 '20 07:04 hjk1122