2017-08-17 23 views
0

repositoryの作成者が共有する訓練されたモデルのデコードモードを実行しようとすると、次のエラーが発生します。Tensorflow pythonは事前に訓練されたモデルをロードしていません

python run_summarization.py --mode=decode --data_path=better.bin --vocab_path=finished_files/vocab --log_root=log/directory --exp_name=pretrained_model 
INFO:tensorflow:Starting seq2seq_attention in decode mode... 
max_size of vocab was specified as 50000; we now have 50000 words. Stopping reading. 
Finished constructing vocabulary of 50000 total words. Last word added: chaudhary 
INFO:tensorflow:Building graph... 
INFO:tensorflow:Adding attention_decoder timestep 0 of 1 
INFO:tensorflow:Time to build graph: 0 seconds 
2017-08-17 10:32:13.481390: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. 
2017-08-17 10:32:13.481413: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 
2017-08-17 10:32:13.481429: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 
2017-08-17 10:32:13.481435: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 
2017-08-17 10:32:13.481440: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. 
INFO:tensorflow:Loading checkpoint log/directory/pretrained_model/train/model-238410 
INFO:tensorflow:Restoring parameters from log/directory/pretrained_model/train/model-238410 
2017-08-17 10:32:13.526779: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/decoder/attention_decoder/lstm_cell/kernel not found in checkpoint 
2017-08-17 10:32:13.527149: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/decoder/attention_decoder/lstm_cell/bias not found in checkpoint 
2017-08-17 10:32:13.529141: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/bw/lstm_cell/bias not found in checkpoint 
2017-08-17 10:32:13.531495: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/fw/lstm_cell/bias not found in checkpoint 
2017-08-17 10:32:13.531495: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/bw/lstm_cell/kernel not found in checkpoint 
2017-08-17 10:32:13.533088: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/fw/lstm_cell/kernel not found in checkpoint 
INFO:tensorflow:Failed to load checkpoint from log/directory/pretrained_model/train. Sleeping for 10 secs... 
INFO:tensorflow:Loading checkpoint log/directory/pretrained_model/train/model-238410 
INFO:tensorflow:Restoring parameters from log/directory/pretrained_model/train/model-238410 
2017-08-17 10:32:23.631564: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/decoder/attention_decoder/lstm_cell/bias not found in checkpoint 
2017-08-17 10:32:23.636247: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/decoder/attention_decoder/lstm_cell/kernel not found in checkpoint 
2017-08-17 10:32:23.638560: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/bw/lstm_cell/kernel not found in checkpoint 
2017-08-17 10:32:23.641101: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/bw/lstm_cell/bias not found in checkpoint 
2017-08-17 10:32:23.641189: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/fw/lstm_cell/kernel not found in checkpoint 
2017-08-17 10:32:23.642738: W tensorflow/core/framework/op_kernel.cc:1158] Not found: Key seq2seq/encoder/bidirectional_rnn/fw/lstm_cell/bias not found in checkpoint 
INFO:tensorflow:Failed to load checkpoint from log/directory/pretrained_model/train. Sleeping for 10 secs... 

ご提案があれば教えてください。

+0

を持つべきであること、あなたがに/あなたのモデル 'pythonのrun_summarization.py --mode =電車--data_path = /パスを訓練している可能性が/ chunked/train_ * --vocab_path =/path/to/vocab --log_root =/path/to/a/log /ディレクトリ--exp_name = myexperiment'または事前に訓練されたモデルをダウンロードしましたか? –

+0

私は事前に訓練されたモデルをダウンロードしました。私は自分のシステムでモデルを訓練しました。しかし、私の要求では、著者はリポジトリをチェックするための事前に訓練されたモデルを提供しています。したがって、モデルを実行しようとしていた。 –

+0

ログに基づいてチェックポイントにデータポイント 'seq2seq/decoder/attention_decoder/lstm_cell/biasがチェックポイントに見つかりません 'があります。チェックポイントを保存するコードをチェックし、すべての機能に対して保存ウェイトが有効であることを確認します。 –

答えて

0

は、あなたがリンクされているコードごとに、あなたが同じ環境で、パイソン、tensorflow

関連する問題