python - 尝试训练我的对象检测模型时如何解决此“用户警告:尝试使用关闭的 FileWriter”错误
问题描述
我已经制作了一个经过完美训练的对象检测模型,但现在我从训练集中删除了一些图像以添加更新更好的图像,但出现以下错误
C:\Users\Swayam\Anaconda3\envs\tensor\lib\site-
packages\tensorflow\python\summary\writer\writer.py:386: UserWarning:
Attempting to use a closed FileWriter. The operation will be a noop
unless
the FileWriter is explicitly reopened.
warnings.warn("Attempting to use a closed FileWriter. "
以下代码已经存在以重新打开 FileWriter:
def reopen(self):
self.event_writer.reopen()
self._closed = False
解决方案
训练的最大步数已达到 200000,因此无法进一步训练。需要更改python文件中的限制
推荐阅读
- javascript - 如何通过主键对数组的所有数据项进行分组并将组的所有剩余条目收集为分组值列表来重构数组的所有数据项?
- python - 如何在 wagtail 中显式设置默认语言?
- sql - 基于 unix 时间戳 crate 数据库聚合数据
- apache-spark - PySpark - 如何检查对象 {RDD,DF,List etc,.} 是否已分发
- javascript - 输入时表单输入非常慢/延迟
- tensorflow - Tensorflow Hub 上的 landmarks 模块提供的标签图与模型输出不匹配
- flutter - Flutter:防止 Future Builder 被触发
- python - 有没有一种方法可以在大型数据框中的数据时间范围内搜索日期时间?
- javascript - 如何使用nodejs在二维码中间添加logo
- flutter - 运行颤振项目时获取退出代码1