ML.NET超高荷载TensorFlow模型h5

ML.NET超高荷载TensorFlow模型h5,tensorflow,ml.net,Tensorflow,Ml.net,嗨,无法加载TensorFlow模型,请帮助我。 模型url: 代码: 尝试加载时出现了什么错误?ValueError:在配置文件中找不到模型。文件url:尝试加载时出现了什么错误?ValueError:在配置文件中找不到模型。文件url: string patch = basedirectory+ "\\anpr_ocr_ua_17-cpu.h5"; if (System.IO.File.Exists(patch)) {

嗨,无法加载TensorFlow模型,请帮助我。 模型url: 代码:


尝试加载时出现了什么错误?ValueError:在配置文件中找不到模型。文件url:尝试加载时出现了什么错误?ValueError:在配置文件中找不到模型。文件url:
            string patch = basedirectory+ "\\anpr_ocr_ua_17-cpu.h5";
        if (System.IO.File.Exists(patch))
        {

            MLContext mLContext = new MLContext(seed: 1);
            TensorFlowModel tensorFlowModel = mLContext.Model.LoadTensorFlowModel(patch);
            //DataViewSchema schema1;
            //var model = mLContext.Model.Load(patch, out schema1);
            var scheme = tensorFlowModel.GetInputSchema();
            DataViewSchema schema = tensorFlowModel.GetModelSchema();
            Console.WriteLine(" =============== TensorFlow Model Schema =============== ");
            var featuresType = (VectorDataViewType)schema["Features"].Type;
            Console.WriteLine($"Name: Features, Type: {featuresType.ItemType.RawType}, Size: ({featuresType.Dimensions[0]})");
            var predictionType = (VectorDataViewType)schema["Prediction/Softmax"].Type;
            Console.WriteLine($"Name: Prediction/Softmax, Type: {predictionType.ItemType.RawType}, Size: ({predictionType.Dimensions[0]})");
            var modelYTesflow = tensorFlowModel.GetModelSchema();
        }