简体   繁体   English

Google Cloud ML Engine:创建模型版本失败

[英]Google Cloud ML Engine: Create model version failed

I have successfully trained a TensorForestEstimator on Google Cloud's ML Engine, but when I try to create a model version I get the following error: 我已经在Google Cloud的ML Engine上成功训练了TensorForestEstimator ,但是当我尝试创建模型版本时,出现以下错误:

Create Version failed. 创建版本失败。 Bad model detected with error: "Error loading the model: Could not load model. " 检测到错误的模型,并显示以下错误:“加载模型时出错:无法加载模型。”

I am deploying with tensorflow 1.3 . 我正在使用tensorflow 1.3部署。 The Experiment is configured as follows: Experiment配置如下:

def get_experiment_fn(args):
    def _experiment(run_config, hparams):
        return Experiment(
            estimator=TensorForestEstimator(
                params=ForestHParams(
                    num_trees=args.num_trees,
                    max_nodes=10000,
                    min_split_samples=2,
                    num_features=8,
                    num_classes=args.num_projections,
                    regression=True
                ),
                model_dir=args.job_dir,
                graph_builder_class=RandomForestGraphs,
                config=run_config,
                keys_name=None,
                report_feature_importances=True
            ),
            train_input_fn=get_input_fn(
                project_name=args.project,
                data_location=args.train_data,
                dataset_size=args.train_size,
                batch_size=args.train_batch_size
            ),
            train_steps=args.train_steps,
            eval_input_fn=get_input_fn(
                project_name=args.project,
                data_location=args.eval_data,
                dataset_size=args.eval_size,
                batch_size=args.eval_batch_size
            ),
            eval_steps=args.eval_steps,
            eval_metrics=get_eval_metrics(),
            export_strategies=[
                make_export_strategy(
                    serving_input_fn,
                    default_output_alternative_key=None,
                    exports_to_keep=1
                )
            ]
        )
    return _experiment

What is the issue? 有什么问题

It looks like Google Cloud ML Engine only supports serving models produced using tensorflow 1.2.0 and below as of now. tensorflow 1.2.0 Google Cloud ML Engine似乎仅支持使用tensorflow 1.2.0及更低版本生成的服务模型。 See here: https://cloud.google.com/ml-engine/docs/concepts/runtime-version-list 参见此处: https : //cloud.google.com/ml-engine/docs/concepts/runtime-version-list

Use --runtime-version 1.2 if possible. 如果可能,请使用--runtime-version 1.2 If you are using a feature specific to tensorflow 1.3 , you will need to host your model using Flask on Google App Engine until ML Engine support for tensorflow 1.3 arrives. 如果您正在使用特定于tensorflow 1.3的功能,则需要在Google App Engine上使用Flask托管模型,直到ML Engine对tensorflow 1.3支持到达为止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Google Cloud ml引擎上调用本地预测或创建模型版本时,Scikit Learn模型导致错误 - Scikit Learn model results in error when calling local predict or creating model version on Google Cloud ml engine 从Google Cloud ML-Engine的已部署SCIKITLEARN模型进行预测 - Prediction from a Deployed SCIKITLEARN model at Google Cloud ML-Engine Google ml-engine云存储作为文件 - google ml-engine cloud storage as a file 在Google Cloud ML Engine中使用自定义依赖项 - Using custom dependencies in Google Cloud ML Engine GPU Google Cloud ML引擎进行慢速训练 - slow training with GPU google cloud ML engine ML Engine Google Cloud Platform,从已部署模型内部的字符串中解析功能 - ML Engine Google Cloud Platform, parse features from a string inside the deployed model 获取“创建版本失败。 尝试在 Google Cloud AI 平台上创建自定义模型时,在 AI 平台上检测到错误模型 - Getting 'Create Version failed. Bad model detected with error' on AI platform when trying to create a custom model on Google Cloud AI platform 将Google Cloud ml-engine连接到Google Cloud SQL - Connecting google cloud ml-engine to google cloud sql Google Cloud ML FAILED_PRECONDITION - Google Cloud ML FAILED_PRECONDITION 如何在 Google Cloud 中部署 Flask ML 模型 - How to Deploy Flask ML model in Google cloud
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM