python - NotFoundError:无法从 /content/training/ckpt-9 的检查点或 SavedModel 恢复:
问题描述
我正在尝试在 Google Colaboratory 上实现这个项目,但我已经被同一个错误困住了一段时间。
一切都很好,直到项目的“27”部分。这是我遇到的错误:
/usr/local/lib/python3.7/dist-packages/tensorflow/python/training/py_checkpoint_reader.py in NewCheckpointReader(filepattern)
95 try:
---> 96 return CheckpointReader(compat.as_bytes(filepattern))
97 # TODO(b/143319754): Remove the RuntimeError casting logic once we resolve the
RuntimeError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /content/training/ckpt-9
During handling of the above exception, another exception occurred:
NotFoundError Traceback (most recent call last)
6 frames
NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /content/training/ckpt-9
During handling of the above exception, another exception occurred:
NotFoundError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/training/tracking/util.py in restore(self, save_path, options)
2338 None, None,
2339 "Failed to restore from checkpoint or SavedModel at {}: {}".format(
-> 2340 orig_save_path, e.message))
2341 # Create the save counter now so it gets initialized with other variables
2342 # when graph building. Creating it earlier would lead to errors when using,
NotFoundError: Failed to restore from checkpoint or SavedModel at /content/training/ckpt-9: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /content/training/ckpt-9```
解决方案
推荐阅读
- python - 从 try-except 创建函数
- java - Java - BlockingQueue 冻结多线程应用程序
- flutter - Flutter:在 PageView.builder 中将页面小部件创建为列表大小的数量
- javascript - react-native 使用钩子从图库中加载图像列表,
- spring-boot - 是否有任何特殊配置可以将 SpringRunner 与 junit5 一起使用?
- c# - 基于请求类型的 ASP.NET Core DI
- python - 二进制轮廓级别
- android - 为什么我的水平 ViewPager2 中的垂直 RecyclerView 不滚动?
- php - 为什么
在 html 文档的正文中,我有这样的内容:
<?=str_replace(' ', '_', $result[0]['something'])?>
这工作得很好。在同一个文档中,我有这个:
<?php if(!empty($result[0]
- c# - 当我添加新用户并尝试在下一行添加声明时,我在正文中引用了错误