-
Notifications
You must be signed in to change notification settings - Fork 112
Description
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