I trained a mnist_fashion model with tensorflow2.4, and then used opencv to call the generated .pb file and the following error occurred.
Net net = readNetFromTensorflow(weightFile);
String field 'tensorflow.FunctionDef.Node.ret' contains invalid UTF-8 data when parsing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
Failed to parse GraphDef file: models/saved_model.pb) in cv::dnn::ReadTFNetParamsFromBinaryFileOrDie
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…