Closed sayakpaul closed 3 years ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
@sayakpaul I guess the model won't take much time to train. Let us train it for at least 50-60 epochs
This what I got after 34 epochs. Pretty good results IMO
@sayakpaul I guess the model won't take much time to train. Let us train it for at least 50-60 epochs
Each epoch takes about 48 seconds to run. So, 50 epochs would take (48 * 50) / 60 = 40 minutes. For generating the additional files, this might be an overkill.
@sayakpaul I guess the model won't take much time to train. Let us train it for at least 50-60 epochs
Each epoch takes about 48 seconds to run. So, 50 epochs would take (48 * 50) / 60 = 40 minutes. For generating the additional files, this might be an overkill.
Cool. Let's go with 30 only then
Sounds good. Here's what I am thinking about the next steps:
.py
file and then we review it amongst ourselves.Sounds good?
Sounds good to me. Also, I think you left one more change that is required. For cleaning the labels, just define a function clean_labels(..)
and call it for training labels, validation labels, and test labels. This would also help reduce the LOC
Side note: I am not sure if all the ops here are supported by TFLite but we can give it a try to convert it into a model than runs on phone. It would be awesome if we can do that. We can even showcase it in the code example if we are able to accomplish it
Sounds good to me. Also, I think you left one more change that is required. For cleaning the labels, just define a function clean_labels(..) and call it for training labels, validation labels, and test labels. This would also help reduce the LOC
Done. However, I kept the training label cleaner as it is because it is printing and storing important information which is being used later on. I did not want to have multiple variables returning from the utility and wanted to keep it clean.
Side note: I am not sure if all the ops here are supported by TFLite but we can give it a try to convert it into a model than runs on phone. It would be awesome if we can do that. We can even showcase it in the code example if we are able to accomplish it
Yes. It's possible to convert to TFLite. Refer to the following notebooks:
This LGTM! If you want to make more changes, do let me know else we can merge this
Reference: https://github.com/sayakpaul/Handwriting-Recognizer-in-Keras/issues/1