NewRandomAccessFile 未能 create/open ; Attention_OCR

NewRandomAccessFile failed to create/open ; Attention_OCR

我正在使用 TensorFlow 预训练模型,注意 ocr https://github.com/tensorflow/models/tree/master/research/attention_ocr

虽然 运行 eval.py 脚本总是出错 File "C:\Users\DELL\Anaconda3\envs\python35DL\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 519, in __exit__ c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: D:\Vision_Project\attention_ocr\python\data/fsns\charset_size=134.txt : The system cannot find the path specified. ; No such process 我无法理解它找不到哪条路径,在何处以及如何在脚本中解决此问题。

系统配置(如果重要的话): Windows 10、8GB 内存、酷睿 i3、1 TB 硬盘 张量流版本:1.8.0 Python 版本:3.5 运行 通过 VirtualEnv

这是一个错误 - fsns.py 对路径的一部分使用 Linux 分隔符。这里是 fix.

如果有帮助,请尝试告诉我。 希望能尽快合并。

我遇到了类似的问题..系统找不到特定的文件。

当我打印出系统读取的确切文件名字符串后,我发现文件名中有一些'\n'...

问题在我执行 line.rstrip() .

后解决