Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Files for create_tfrecord.py #4

Open
vsltech opened this issue Oct 22, 2018 · 1 comment
Open

Missing Files for create_tfrecord.py #4

vsltech opened this issue Oct 22, 2018 · 1 comment

Comments

@vsltech
Copy link

vsltech commented Oct 22, 2018

Please share how to create_tfrecord & supply input image fro demo.py? Also, these files are missing '/share/zhui/mnt/demo_20.tfrecord' from input_data.py

@goodhamgupta
Copy link

Hi @vsltech,

Unfortunately, it seems like the demo.py will work for images that have numbers between 0-10. My best guess would be to create the tfrecord for the MNIST dataset and try running the script.

The synthetic characters dataset is available here. Once the dataset is downloaded, extract the dataset and do the following:

  • Create a train.txt file with lines containing the path of the images you want to train on and the groundtruth_text. For example,
./mnt/ramdisk/max/2998/7/100_KINDERGARTNERS_42516.jpg KINDERGARTNERS
./mnt/ramdisk/max/2998/7/101_MILLENNIAL_48450.jpg MILLENNIAL
./mnt/ramdisk/max/2998/7/102_multiplicities_50355.jpg multiplicities
  • Run the create_tfrecord.py script with the following arguments:
python3 create_tfrecord.py --output_path path_of_tfrecord_file --tags_file_path path_of_train_txt_file
  • Once the tfrecord file has been created, run the train.py file with the following arguments:
python3 train.py --tfrecord_file_path path_to_tfrecord_file

Let me know if you have any issues! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants