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

How to label with txt or csv files ? #36

Open
centurions opened this issue May 10, 2019 · 1 comment
Open

How to label with txt or csv files ? #36

centurions opened this issue May 10, 2019 · 1 comment

Comments

@centurions
Copy link

Would you please show me an examle of txt or cvs files structure and naming convention of that files for training . thank you

@Nosferath
Copy link

It seems that the texts are extracted on line 40 of file Image_Generator.py. What I'm doing is using a text file for each image, with the same name but with ".gt.txt" extension. I replaced line 40 with:

with open(self.img_dirpath + img_file.split(".")[0] + ".gt.txt") as f:
    self.texts.append(f.readline().strip())

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