user11405997
user11405997

Reputation:

How can I solve this "UserWarning: Attempting to use a closed FileWriter " error when trying to train my object detection model

I have made an object detection model which trained perfectly but now I removed some images from the training set to add newer better images and I'm getting the following errors

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. "

The following code is already present to reopen the FileWriter:

 def reopen(self):
     self.event_writer.reopen()
     self._closed = False

Upvotes: 0

Views: 2039

Answers (1)

user11405997
user11405997

Reputation:

The maximum number of steps in the training which was 200000 was reached and so it could not train further. Need to change the limit in the python file

Upvotes: 1

Related Questions