-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Cherrypicking GH-10217 and GH-10216 to PaddlePaddle:Release/2.7 #10655
Cherrypicking GH-10217 and GH-10216 to PaddlePaddle:Release/2.7 #10655
Conversation
Add preprocessing to options
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@UserUnknownFactor @shiyutang 本次修改带来问题,如果有需要,我可以进行本次问题的二次修复,因为先前有人无法运行PPOCRLabel,我根据先前paddleocr的经验,告诉他们是通道溢出的问题,当我看到本次提交的时候,才发现是增加了对透明通道的需求,不过带来了一些其他bug需要修复。 |
好的,感谢,请问可以指出哪一处代码修改带来的问题么? |
不止一处,目前是check_img的读取逻辑出现问题,有的逻辑分支获取三通道,有的获取四通道,而这个函数又被paddleocr paddlelabel调用,今天晚上我会提个pr进行修改,目前来说该函数功能稍微复杂,会增加注释,以防后续的开发者无法理解其行为。 |
* Update PP-OCRv4_introduction.md * Update PP-OCRv4_introduction.md (#10616) * Update PP-OCRv4_introduction.md * Update PP-OCRv4_introduction.md * Update PP-OCRv4_introduction.md * Update README.md * Cherrypicking GH-10217 and GH-10216 to PaddlePaddle:Release/2.7 (#10655) * Don't break overall processing on a bad image * Add preprocessing common to OCR tasks Add preprocessing to options * Update requirements.txt (#10656) added missing pyyaml library * [TIPC]update xpu tipc script (#10658) * fix-typo (#10642) Co-authored-by: Dennis <[email protected]> Co-authored-by: shiyutang <[email protected]> * 修改数据增强导致的DSR报错 (#10662) (#10681) * 修改数据增强导致的DSR报错 * 错误修改回滚 * Update algorithm_overview_en.md (#10670) Fixed simple spelling errors. * Implement recoginition method ParseQ * Document update for new recognition method ParseQ * add prediction for parseq * Update rec_vit_parseq.yml * Update rec_r31_sar.yml * Update rec_r31_sar.yml * Update rec_r50_fpn_srn.yml * Update rec_vit_parseq.py * Update rec_vit_parseq.yml * Update rec_parseq_head.py * Update rec_img_aug.py * Update rec_vit_parseq.yml * Update __init__.py * Update predict_rec.py * Update paddleocr.py * Update requirements.txt * Update utility.py * Update utility.py --------- Co-authored-by: xiaoting <[email protected]> Co-authored-by: topduke <[email protected]> Co-authored-by: dyning <[email protected]> Co-authored-by: UserUnknownFactor <[email protected]> Co-authored-by: itasli <[email protected]> Co-authored-by: Kai Song <[email protected]> Co-authored-by: dvorst <[email protected]> Co-authored-by: Dennis <[email protected]> Co-authored-by: shiyutang <[email protected]> Co-authored-by: Dec20B <[email protected]> Co-authored-by: ncoffman <[email protected]>
…透明色的需求,由于在check_img中以及存在对单通道图像转三通道图像的处理,因此将该四通道图像处理成三通道的图像也放入该check_img,并统一三通道图像输出逻辑。 (#10847) add:由于函数复杂度增高,增加注释。
…Paddle:Release/2.7 (PaddlePaddle#10655) * Don't break overall processing on a bad image * Add preprocessing common to OCR tasks Add preprocessing to options
…Paddle:Release/2.7 (PaddlePaddle#10655) * Don't break overall processing on a bad image * Add preprocessing common to OCR tasks Add preprocessing to options
No description provided.