它真的叫TextRenderer
继上次研究了一个月为什么自己从新训练的PaddleOCR-v2-REC模型不收敛以后,迎来了下一个问题,数据多样性问题怎么解决?
在官方项目提了issue之后得到了如下答案:
- TextRenderer
- TextRecognitionDataGenerator
那么本篇博客我们就来看一下TextRenderer的效果怎么样
项目地址为:
https://github.com/Sanster/text_rendererhttps://github.com/Sanster/text_renderer
首先在anaconda给它创建个虚拟环境
conda create -n textrenderer activate textrenderer
然后安装个依赖
pip install -r requirements.txt -i https://pypi.douban.com/simple/
中间会报个错说
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决办法是
pip install --ignore-installed PyYAML
然后再执行一遍安装依赖就可以了。
测试程序是
python main.py
我略微调了一下参数
我觉得效果可以满足使用了,下一篇将介绍新版TextRenderer.



