Python 无法创建 NewWriteableFile(tensorflow.python.framework.errors_impl.NotFoundError : Failed to create a NewWriteableFile: )

标签 python tensorflow deep-learning object-detection

我正在试用 TensorFlow 2.0 对象检测 API,当我尝试导出推理图时,我收到一条错误消息,指出 tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a NewWriteableFile: .\exported -models\my_mobilenet_model\checkpoint\cca890901704d9b9c1a0c5e959235fc/part-00000-of-00001.data-00000-of-00001.tempstate144711528486123721:系统找不到指定的路径。 ;没有这样的过程 [Op:SaveV2]

我运行命令:python .\exporter_main_v2.py --input_type image_tensor --pipeline_config_path .\models\my_ssd_mobilenet_v2_fpnlite\pipeline.config --trained_checkpoint_dir .\models\my_ssd_mobilenet_v2_fpnlite\--output_directory .\exported-models\my_mobilenet_model

我在运行命令的目录中确实有一个名为 exported-models 的文件夹

最佳答案

整个路径长度有限制 (<260)。请。检查您保存模型的路径,您可以手动尝试是否可以创建如上所示的文件夹,如果不能,请。尝试将 output_directory 更改为另一个短路径。

关于Python 无法创建 NewWriteableFile(tensorflow.python.framework.errors_impl.NotFoundError : Failed to create a NewWriteableFile: ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64065110/

相关文章:

validation - 为什么添加 dropout 层对验证集有效,但对测试集无效?

python - Python 中的一阶常微分方程组

python - 在 tf.nn.top_k 中加入 torch.topk 的 dim 参数

python - Fasttext .vec 和 .bin 文件之间的区别

tensorflow - 如何在 Ubuntu 20.04 64 位的 VirtualBox 6.1.16 中启用 AVX/AVX2?

python - 在 C 中嵌入 Tensorflow/Torch 以集成到更大的项目中

machine-learning - TensorFlow 中的批量标准化

python - 在 PyQt 中启动 new QThread() 时传递参数

python - 如何提取 python 脚本中使用的文件名的一部分作为参数?

python - 1 :1 mappings in python? 的数据结构