我正在试用 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/