Giter Site home page Giter Site logo

about trained model about crnn.pytorch HOT 7 OPEN

yizt avatar yizt commented on May 27, 2024
about trained model

from crnn.pytorch.

Comments (7)

yizt avatar yizt commented on May 27, 2024

@zcswdt 你好,感谢反馈;没有使用实际的数据训练,使用的是随机生成的数据训练,代码在generator.py

from crnn.pytorch.

zcswdt avatar zcswdt commented on May 27, 2024

谢谢您的百忙之中的回复,我刚看了您的生成文字代码,写的非常棒,授人以鱼不如授人以渔。刚好我在做一个繁体字识别的项目,目前我没有繁体字数据集,还在发愁呢。可以问一下,繁体字识别的话,使用crnn模型最低要训练多少张图片呢?

from crnn.pytorch.

yizt avatar yizt commented on May 27, 2024

@zcswdt 具体需要多少,不清楚,没有实际测试过

from crnn.pytorch.

zcswdt avatar zcswdt commented on May 27, 2024

您好,我使用您的generator.py生成图片的过程中会报错,我是python3的环境,这个报错我谷歌了解决方法,最后没有解决,是我哪里错了吗?希望得到您的回复。
报错如下:
root@8a3c4a48fd90:/mywork/craft/crnn_ziti# PYTHONIOENCODING=utf-8 python generator.py
Traceback (most recent call last):
File "generator.py", line 15, in
from fontutils import FONT_CHARS_DICT
File "/mywork/craft/crnn_ziti/fontutils.py", line 81, in
FONT_CHARS_DICT = get_all_font_chars()
File "/mywork/craft/crnn_ziti/fontutils.py", line 30, in get_all_font_chars
font_list = [ImageFont.truetype(font_path, size=10) for font_path in font_path_list]
File "/mywork/craft/crnn_ziti/fontutils.py", line 30, in
font_list = [ImageFont.truetype(font_path, size=10) for font_path in font_path_list]
File "/opt/conda/lib/python3.6/site-packages/PIL/ImageFont.py", line 640, in truetype
return freetype(font)
File "/opt/conda/lib/python3.6/site-packages/PIL/ImageFont.py", line 637, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/opt/conda/lib/python3.6/site-packages/PIL/ImageFont.py", line 186, in init
font, size, index, encoding, layout_engine=layout_engine
UnicodeEncodeError: 'ascii' codec can't encode characters in position 30-41: ordinal not in range(128)

from crnn.pytorch.

yizt avatar yizt commented on May 27, 2024

@zcswdt 我也是python3.6, 相关包版本如下,在mac和linux上都有测试过:

Pillow                5.4.1
opencv-python         4.1.0.25
fonttools             4.2.2
numpy                 1.16.2                 

from crnn.pytorch.

zcswdt avatar zcswdt commented on May 27, 2024

您好,谢谢您的回复,我已经解决了该问题。但是我在读代码的时候发现,在generator.py文件,class Generator:传进去两个参数,其中self.alpha_list = list(alpha)代表是词库,但是并没有在接下来代码中用到,可以加个qq或者微信沟通一下吗?谢谢!

from crnn.pytorch.

yizt avatar yizt commented on May 27, 2024

@zcswdt 跟alpha重复了,后面用的是alpha;这个是没有用;我的微信号:yizuotian131

from crnn.pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.