0

バケットとフォルダの選択後にモデルの新しいバージョンを作成しているときに、Cloud Console からこのエラーが発生しました。

{
    "error": {
    "code": 400,
    "message": "Field: version.deployment_uri Error: The model directory gs://ml-codelab/v1-output/ is expected to contain the 'export.meta' file. Please make sure it exists and Cloud ML service account cloud-ml-service@xxx.iam.gserviceaccount.com has read access to it",
    "status": "FAILED_PRECONDITION",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
        "field": "version.deployment_uri",
        "description": "The model directory gs://ml-codelab/v1-output/ is expected to contain the 'export.meta' file. Please make sure it exists and Cloud ML service account cloud-ml-service@xxxx.iam.gserviceaccount.com has read access to it"
          }
        ]
      }
    ]
    }
}
4

1 に答える 1

1

モデルをエクスポートするときは、メタ グラフを作成する必要があります。セーバーなどを使用してこれを行うことができます

saver = tf.train.Saver()
saver.save(sess, os.path.join(FLAGS.output_dir, "export"))

サービング グラフはトレーニング グラフとは異なる場合があるため、通常はセッションとグラフを別々に保存します。

于 2016-11-12T18:01:55.420 に答える