带有tensor2tensor的树莓派上的Tensorflow

时间:2020-05-29 19:35:55

标签: tensorflow raspberry-pi

我看到此错误。我正在将tf 1.15.0用于armhf和python3.7。最终,我将使用树莓和克星。我也使用tensor2tensor,这是我现在看到错误的地方。

文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/bin/t2t_decoder.py”,主行中的第209行 解码(估计器,hp,decode_hp) 文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/bin/t2t_decoder.py”,第110行,解码 checkpoint_path = FLAGS.checkpoint_path) 文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/utils/decoding.py”,第227行,位于decode_from_dataset中 checkpoint_path = checkpoint_path) 文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/utils/decoding.py”,第316行,位于decode_once 对于num_predictions,以enumerate(predictions)进行预测: 预测中的文件“ /usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/estimator.py”,第620行 input_fn,ModeKeys.PREDICT) 文件“ /usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/estimator.py”,行996,在_get_features_from_input_fn中 结果= self._call_input_fn(input_fn,模式) _call_input_fn中的文件“ /usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/estimator.py”,行1116 返回input_fn(** kwargs) estimator_input_fn中的文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/data_generators/problem.py”,第803行 数据集_kwargs =数据集_kwargs) 在input_fn的第888行中的文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/data_generators/problem.py” self.dataset(* dataset_kwargs), 数据集中第653行的文件“ /usr/local/lib/python3.7/dist-packages/tensor2tensor/data_generators/problem.py” contrib.slim()。parallel_reader.get_data_files(data_filepattern)) get_data_files中的第316行的文件“ /usr/local/lib/python3.7/dist-packages/tensorflow_core/contrib/slim/python/slim/data/parallel_reader.py” 引发ValueError('在%s中找不到数据文件'%(data_sources,)) ValueError:在/ app / transformer /../ data / t2t_data / chat_movie_30 / chat_line_problem-dev

中找不到数据文件

该错误表明'dev'文件不存在,但实际上它们存在。我不知道该如何解决。在上面的打印输出中,错误显示在测试阶段。我可以在训练阶段运行t2t代码,该代码将保存数据文件,但是稍后需要读取它们时,它再次崩溃。

0 个答案:

没有答案
相关问题