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

where is the data #8

Open
gewenpulan opened this issue Jul 18, 2017 · 5 comments
Open

where is the data #8

gewenpulan opened this issue Jul 18, 2017 · 5 comments

Comments

@gewenpulan
Copy link

I am running train_letter.py and return this "No such file or directory: 'fonts.list'"

@calicratis19
Copy link

Same question here. Also /data/fonts/ directory missing as well.

@hbaslan
Copy link

hbaslan commented Oct 25, 2017

/data/fonts/DroidSans.ttf missing

@pannous
Copy link
Owner

pannous commented Nov 30, 2017

sorry for the very late reply.
the mechanism to automatically find the fonts was repaired.

@gewenpulan
Copy link
Author

i am running on windows, the newest version still not ok , message :

F:\OCR\tensorflow-ocr-master>python train_letters.py
extensions loaded
using OVERFIT DEBUG DATA!!!
Building fonts.list
'locate' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "train_letters.py", line 4, in
import letter
File "F:\OCR\tensorflow-ocr-master\letter.py", line 68, in
find_fonts()
File "F:\OCR\tensorflow-ocr-master\letter.py", line 42, in find_fonts
return readlines("fonts.list")
File "F:\OCR\tensorflow-ocr-master\extensions.py", line 1400, in readlines
return list(map(str.strip, open(source).readlines()))
FileNotFoundError: [Errno 2] No such file or directory: 'fonts.list'

and i search this code :
def find_fonts():
if platform == "darwin":
os.system("mdfind -name '.ttf' | grep '.ttf$' | iconv -f utf-8 -t ascii > fonts.list")
else:
os.system("locate '.ttf' | grep '.ttf$' > fonts.list")
return readlines("fonts.list")

no windows....

@pannous
Copy link
Owner

pannous commented Mar 2, 2018

added windows: sorry, how do I find fonts on Windows? falling back to Menlo.ttf

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

4 participants