首页 > 解决方案 > 尝试训练我的对象检测模型时如何解决此“用户警告:尝试使用关闭的 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

标签: pythontensorflowobject-recognition

解决方案


训练的最大步数已达到 200000,因此无法进一步训练。需要更改python文件中的限制


推荐阅读