Closed syedjafer closed 6 years ago
there is something wrong with your words.txt file. Please look at the README, sections "Train model" and "FAQ", to see instructions on how to download the correct words.txt file.
yeah , i resolved it . Thanks
How do i train with my own dataset , but it resulted in ,
My words .txt
My dataset
your words.txt is wrong. It should throw an assertion - did you remove it? Please read the README - there you can find a link where a description can be found on how to create words.txt.
what does getNext function do , how to input my input images ,
this is up to you. The code is just a skeleton which everyone has to adapt to his or her dataset. You have to somehow let getNext() return a tuple containing the ground-truth text and image.
yeah , i resolved it . Thanks @syedjafer @githubharald can you please help me , how did you create word.txt file? I have 4000+ images, their full location and ground truths in an excel . Ground Truths are sentences having max length of 200+. PLs pls help me how to create words.txt file from them.
PFA a ref image .
Traceback (most recent call last): File "main.py", line 139, in
main()
File "main.py", line 115, in main
loader = DataLoader(FilePaths.fnTrain, Model.batchSize, Model.imgSize, Model.maxTextLen)
File "/home/syedjafer/Documents/FinalYearProj/SimpleHTR/src/DataLoader.py", line 43, in init
assert (len(lineSplit) >= 9) , "Working"
AssertionError: Working