tpvt99 / character-recognition-cnn

Character Recognition using convolutional neural network with Tensfor flow
8 stars 3 forks source link

Training stopping on epoch 19 #3

Closed AdiPathak97 closed 6 years ago

AdiPathak97 commented 6 years ago

cnn_hang Training has stopped here and not progressing since the last 30 minutes. If I force escape, test.py doesn't run due to a file not being generated due to incomplete training.

tpvt99 commented 6 years ago

hi. have you solved your problem yet?

AdiPathak97 commented 6 years ago

The issue specified in the screenshot was a rather silly oversight on my part, where I didn't close the plot window, rather just minimized it. However, once I closed the window, cnn.py finished execution, but threw up another error saying that 'my-model.ckpt cannot be saved, cannot find specified directory' or something to that effect. I don't have a screenshot of that error.

The cause of this error was that 'my-model.ckpt' file wasn't being generated in the current directory as specified in line 185 of cnn.py. This is the following line : saver.save(sess, 'my-model.ckpt')

I resolved this by editing this line to this : saver.save(sess, './my-model.ckpt') This saves generated file into root directory of the folder.