2016-11-12 5 views
0

バケットとフォルダを選択した後にモデルの新しいバージョンを作成するときに、クラウドコンソールからこのエラーが発生しました。モデルディレクトリに 'export.meta'ファイルが含まれていると予想されます

{ 
    "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 [email protected] 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 [email protected] has read access to it" 
      } 
     ] 
     } 
    ] 
    } 
} 

答えて

1

モデルをエクスポートするときにメタグラフを作成する必要があります。たとえば、保護者を使用してこれを行うことができます。

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

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

関連する問題