Closed tairen99 closed 3 years ago
不需要pip install lanms,代码检测到python版本是3.5的时候自动就会走这个lanms的分支的。这部分加速版nms代码是从外部项目引入的,由于原作只有py35的实现,所以简单的写了这个分支,有需要的话,可以debug一下这部分代码,使其兼容更高版本的python。
Hi,@MissPenguin, 谢谢你的回复。 我尝试直接使用python3.5 的版本,但是出现了import error 如下图所示:
所以即使我直接使用python3.5也似乎不能绕过这个 版本的问题,不知道你们还有别的办法去加速训练 而不需要去修改 lanms 源代码? 谢谢!
@tairen99 Hi, I too faced the same issue, the NMS is working on 30k boxes so taking a lot of time. I see that you closed this issue, can I know how did you solved it.
Hi,PaddleOCR 和其他同仁, 首先谢谢你们提供这么好的平台。
在使用你们的 EAST模型,在AWS g4dn.2xlarge (8CPUs, 32GB memory, 16GB GPU memory ) 作我们自己的文字检测训练的时候,我遇到了 验证阶段用时过长的问题(验证了4张图片,用了大概6个小时):
我使用的PaddleOCR版本是: PaddleOCR {release/2.0} 我的EAST 训练用的 配置文件如下:
验证过程截图:
使用资源截图:
通过在本github搜索这个问题,我发现了这个链接:https://github.com/PaddlePaddle/PaddleOCR/issues/196, 当我尝试在“east_postprocess.py” 替换 “nms_locality”函数 为 “lanms.merge_quadrangle_n9”,我看你们code里面是:
是不是意味着 这个用C++加速的函数,只能在 Python3.5的环境中使用? 如果是这样,是不是与快速安装中要求的Python3.7 有冲突? https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.1/doc/doc_en/installation_en.md?
我尝试安装用 pip3.5, pip3.7和 pip3 安装 lanms 包,都没有成功:
我在使用SAST 模型进行文字检测的时候,用时很长,似乎也是因为这个nms_locality 的问题。
现在我不知道该怎么样解决这个问题如果我想继续使用PPOCR,还请各位多多分享和指点! 先表示感谢!