-
Couldn't load subscription status.
- Fork 9.2k
[ILUVATAR_GPU] Support for iluvatar_gpu #16518
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
Conversation
|
Thanks for your contribution! |
ppocr/data/imaug/operators.py
Outdated
| img, [ratio_h, ratio_w] = self.resize_image_type1(img) | ||
| data["image"] = img | ||
| data["shape"] = np.array([src_h, src_w, ratio_h, ratio_w]) | ||
| data["shape"] = np.array([src_h, src_w, ratio_h, ratio_w]).astype(np.float32) |
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.
整体转换成float32的原因是?
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.
天数卡上目前暂不支持double,这里不转的话在dataloader中会存在double的tensor。
感觉这里用fp32也可以,如果主逻辑需要使用fp64的话,我后面把这块另外搞个天数的分支。
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.
这里我不确定是否会对其他硬件造成影响,保守起见,可以单独出一个分支?
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.
好的,我整理一下,单独写个iluvatar的分支
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.
已更新,麻烦有时间再帮忙review一下~
aba8242 to
a063aee
Compare
a063aee to
981a110
Compare
* polish (#16665) * polish (#16667) * polish (#16670) * polish (#16676) * use FlashAttention 2.8.2 (#16689) * polish (#16690) * update docs (#16688) * update docs * add methods * adding frigate to awesome_projects.md (#16659) Frigate is a real-time NVR system that uses PaddleOCR for License Plate Recognition (LPR). Co-authored-by: AmirHossein_Omidi <151873319+AmirHoseinOmidi@users.noreply.github.com> * update PaddleOCR-VL paper url (#16696) * update PaddleOCR-VL paper url * polish README * update doc (#16700) * [doc] add hareware support (#16725) * Add hardware support * Add hardware support * fix * update * update * 109 langs dos (#16718) * fix invalid link in doc (#16719) * fix conflict * fix doc2 * update fqa (#16716) * update fqa * Update PaddleOCR-VL.en.md * Update PaddleOCR-VL.en.md * Update PaddleOCR-VL.en.md * Update PaddleOCR-VL.md * support cinn flag (#16745) * docs: fix_doc1 (#16752) * Parse all local OCR result batches instead of only the first (#16756) Signed-off-by: Adler Fleurant <2609856+AdlerFleurant@users.noreply.github.com> * [ILUVATAR_GPU] Support for iluvatar_gpu (#16518) * docs: fix valid link in doc1022 (#16812) * fix_doc * fix_doc * update readme (#16861) * update readme * fix code-style for readme * [Docs] Optimize docs for deployment of PaddleOCR-VL (#16808) * Optimize docs for deployment of PaddleOCR-VL * Update docs * Fix not-using-doc-prepeocessor bug * Update dockerfiles and docs * Add SFT * Fix code style * Add PaddleOCR-VL-0.9B model into offline pipeline image * Support Windows * Add lower bound for paddleocr version * Revert windows and paddle 3.2.1 * Support setting paddleocr version * Fix typo * Update docker image sizes * Fix bug * Fix doc --------- Signed-off-by: Adler Fleurant <2609856+AdlerFleurant@users.noreply.github.com> Co-authored-by: Tingquan Gao <gaotingquan@baidu.com> Co-authored-by: zhang-prog <69562787+zhang-prog@users.noreply.github.com> Co-authored-by: Sunflower7788 <sunting13@baidu.com> Co-authored-by: AmirHossein_Omidi <151873319+AmirHosseinOmidi0@users.noreply.github.com> Co-authored-by: AmirHossein_Omidi <151873319+AmirHoseinOmidi@users.noreply.github.com> Co-authored-by: changdazhou <142379845+changdazhou@users.noreply.github.com> Co-authored-by: liuhongen1234567 <65936492+liuhongen1234567@users.noreply.github.com> Co-authored-by: Zx <zx297277602@outlook.com> Co-authored-by: Adler Fleurant <2609856+AdlerFleurant@users.noreply.github.com> Co-authored-by: tianyuzhou668 <143938697+tianyuzhou668@users.noreply.github.com> Co-authored-by: Lin Manhui <mhlin425@whu.edu.cn>
针对天数硬件做了适配