changdazhou
b6211b936b
support benchmark for paddlepaddle3.0 ( #13574 )
2024-08-02 19:24:40 +08:00
zhangyubo0722
6c12df47b2
merge release/2.6.1 to main ( #13523 )
2024-07-29 19:09:42 +08:00
liuhongen1234567
cf26f2330e
Latexocr paddle ( #13401 )
...
* commit_test
* modified: configs/rec/rec_latex_ocr.yml
deleted: ppocr/modeling/backbones/rec_resnetv2.py
* ntuple_solve
* style
* style
* style
* style
* style
* style
* style
* style
* style
* delete comment
* cla_email
2024-07-22 11:50:23 +08:00
Manik Singh Sarmaal
5347be75f9
Update program.py ( #13389 )
...
refering to-https://www.paddlepaddle.org.cn/documentation/docs/en/api/paddle/incubate/ModelAverage_en.html
it should be paddle.incunate.ModelAverage and paddle.incubate.optimizer.ModelAverage
2024-07-15 21:48:26 +08:00
Wang Xin
db0ad17cf6
fix slice op parameters not being passed correctly ( #13319 )
2024-07-09 17:13:41 +08:00
Wang Xin
c95f6b2de7
optimize func: get_infer_gpuid ( #13275 )
...
* optimize func: get_infer_gpuid
* apply code review suggestion
2024-07-09 10:01:16 +08:00
CaiRan
6d5f998fe1
solve the onnxruntime inference issue ( #13154 )
2024-06-21 17:20:40 +08:00
enximi
86a447de9f
fix wrong function name ( #12826 )
...
AttributeError: module 'ntpath' has no attribute 'is_dir'. Did you mean: 'isdir'?
2024-06-09 10:23:24 +08:00
Alex Pasquali
a764c560ba
Save recognition inference logs to file ( #12542 )
...
* Save recognition inference logs to file
* Formatted code with black
2024-05-31 09:36:34 +08:00
Alex Pasquali
6e7a1b871d
Save detection inference logs to file ( #12042 )
...
* Save detection inference logs to file
* Minor fix on save_log_path
* Formatted with black
* If logger is None: get_logger()
2024-05-29 11:19:47 +08:00
Wang Xin
ea29b423d5
fix and enable flake8 E721 ( #12258 )
2024-05-27 11:12:05 +08:00
aspaul20
965f569e81
added sliding window for large image inference ( #12152 )
...
added sliding window for large image inference
2024-05-24 16:16:37 +08:00
Sanjay Rijal
502e1675e4
Error with pyclipper inhomogeneous expanded array ( #12108 )
...
* pyclipper inhomogeneous expanded array solved
For some images, `np.array(offset.Execute(distance))` can result in inhomogeneous part of the detection box list, which cannot be casted into numpy array directly.
* corrected box reshape position
- box reshape was mistakenly done at line 145 which is now correctly done at line 92 of `db_postprocess.py`
- if box is empty then continue
* reverted mistakenly changed line 147
- reverted mistakenly changed `box.array(box)` to `np.array(box)`
* expanded array fix for `det_box_type=quad`
* polygons padding
For `--det_box_type = poly`, pad the detected polygon arrays if they have different shapes to ensure even shapes of polygon arrays
* fix codestyle
---------
Co-authored-by: Wang Xin <xinwang614@gmail.com>
2024-05-18 09:19:06 +08:00
张春乔
a730065e7b
【OCR Issue No.9】以可选形式支持Visualdl ( #11947 )
...
* delete visual dl
* totally delete visual
* delete vdl file
* fix codestyle
2024-04-25 17:37:27 +08:00
Wang Xin
045e5f6ac7
add pre-commit workflow ( #11973 )
...
* add pre-commit workflow
* run 'pre-commit run --all-files'
* setup python version
2024-04-21 21:46:20 +08:00
co63oc
3b6f117c44
Fix ( #11448 )
2024-01-02 11:02:13 +08:00
marswen
0382bfb02d
Optimize prediction on long image and deduplicate similar boxes with multiple lables ( #11366 )
...
* Handle conflict where a box is simultaneously recognized as multiple labels
* Split large height image recursively and process each with overlap to enhance performance
* Fix error when dt_box result is empty
* Add split operation on horizon side
* Slide on horizon may suffer line completeness, so that add more strict condition.
* Optimize recognition of overlap boxes.
2023-12-21 10:32:42 +08:00
TracebaK
317eac13b5
Add device check in check_gpu ( #11293 )
2023-12-06 11:12:58 +08:00
gmm
856ce76be3
Dygraph fix max_mem_reserved for benchmark ( #11341 )
...
* fix profile
* fix python3.10
* add max_mem_reserved for benchmark
* fix benchmark
2023-12-05 14:55:38 +08:00
RuohengMa
317f56a3f4
Refine according to comment ( #11301 )
2023-11-24 16:50:34 +08:00
RuohengMa
c8544d04ec
Fix bug when running on XPU ( #11299 )
2023-11-23 16:58:48 +08:00
gmm
a0901d2175
Dygraph【benchmark】add max_mem_reserved for benchmark ( #11284 )
...
* fix profile
* fix python3.10
* add max_mem_reserved for benchmark
2023-11-22 20:11:14 +08:00
Alexnet
fb38d0be18
fix SAR inference, when batch size>1, norm_img_batch and valid_ratios shapes do not match ( #11238 )
2023-11-15 10:02:03 +08:00
shiyutang
e3fc6393e0
[Cherry-pick] Cherry-pick from release/2.6 ( #11092 )
...
* Update recognition_en.md (#10059 )
ic15_dict.txt only have 36 digits
* Update ocr_rec.h (#9469 )
It is enough to include preprocess_op.h, we do not need to include ocr_cls.h.
* 补充num_classes注释说明 (#10073 )
ser_vi_layoutxlm_xfund_zh.yml中的Architecture.Backbone.num_classes所赋值会设置给Loss.num_classes,
由于采用BIO标注,假设字典中包含n个字段(包含other)时,则类别数为2n-1;假设字典中包含n个字段(不含other)时,则类别数为2n+1。
* Update algorithm_overview_en.md (#9747 )
Fix links to super-resolution algorithm docs
* 改进文档`deploy/hubserving/readme.md`和`doc/doc_ch/models_list.md` (#9110 )
* Update readme.md
* Update readme.md
* Update readme.md
* Update models_list.md
* trim trailling spaces @ `deploy/hubserving/readme_en.md`
* `s/shell/bash/` @ `deploy/hubserving/readme_en.md`
* Update `deploy/hubserving/readme_en.md` to sync with `deploy/hubserving/readme.md`
* Update deploy/hubserving/readme_en.md to sync with `deploy/hubserving/readme.md`
* Update deploy/hubserving/readme_en.md to sync with `deploy/hubserving/readme.md`
* Update `doc/doc_en/models_list_en.md` to sync with `doc/doc_ch/models_list_en.md`
* using Grammarly to weak `deploy/hubserving/readme_en.md`
* using Grammarly to tweak `doc/doc_en/models_list_en.md`
* `ocr_system` module will return with values of field `confidence`
* Update README_CN.md
* 修复测试服务中图片转Base64的引用地址错误。 (#8334 )
* Update application.md
* [Doc] Fix 404 link. (#10318 )
* Update PP-OCRv3_det_train.md
* Update knowledge_distillation.md
* Update config.md
* Fix fitz camelCase deprecation and .PDF not being recognized as pdf file (#10181 )
* Fix fitz camelCase deprecation and .PDF not being recognized as pdf file
* refactor get_image_file_list function
* Update customize.md (#10325 )
* Update FAQ.md (#10345 )
* Update FAQ.md (#10349 )
* Don't break overall processing on a bad image (#10216 )
* Add preprocessing common to OCR tasks (#10217 )
Add preprocessing to options
* [MLU] add mlu device for infer (#10249 )
* Create newfeature.md
* Update newfeature.md
* remove unused imported module, so can avoid PyInstaller packaged binary's start-time not found module error. (#10502 )
* CV套件建设专项活动 - 文字识别返回单字识别坐标 (#10515 )
* modification of return word box
* update_implements
* Update rec_postprocess.py
* Update utility.py
* Update README_ch.md
* revert README_ch.md update
* Fixed Layout recovery README file (#10493 )
Co-authored-by: Shubham Chambhare <shubhamchambhare@zoop.one>
* update_doc
* bugfix
---------
Co-authored-by: ChuongLoc <89434232+ChuongLoc@users.noreply.github.com>
Co-authored-by: Wang Xin <xinwang614@gmail.com>
Co-authored-by: tanjh <dtdhinjapan@gmail.com>
Co-authored-by: Louis Maddox <lmmx@users.noreply.github.com>
Co-authored-by: n0099 <n@n0099.net>
Co-authored-by: zhenliang li <37922155+shouyong@users.noreply.github.com>
Co-authored-by: itasli <ilyas.tasli@outlook.fr>
Co-authored-by: UserUnknownFactor <63057995+UserUnknownFactor@users.noreply.github.com>
Co-authored-by: PeiyuLau <135964669+PeiyuLau@users.noreply.github.com>
Co-authored-by: kerneltravel <kjpioo2006@gmail.com>
Co-authored-by: ToddBear <43341135+ToddBear@users.noreply.github.com>
Co-authored-by: Ligoml <39876205+Ligoml@users.noreply.github.com>
Co-authored-by: Shubham Chambhare <59397280+Shubham654@users.noreply.github.com>
Co-authored-by: Shubham Chambhare <shubhamchambhare@zoop.one>
Co-authored-by: andyj <87074272+andyjpaddle@users.noreply.github.com>
2023-10-18 17:37:23 +08:00
Viktor Bordiuzha
d0d77fe273
Fixed a bug where changing "max_text_length" for VisionLAN did not change the length of the output text ( #11025 )
2023-10-12 11:07:07 +08:00
zhangyubo0722
4ba32bc91c
support eval pre epoch ( #11003 )
2023-09-26 18:50:42 +08:00
zhangyubo0722
e49e491417
add svtr large model ( #10937 )
...
* add svtr large model
* [WIP]add svtr large model
2023-09-26 14:38:29 +08:00
topduke
8a52c99ad8
[New] add rec CPPD model ( #10990 )
...
* fix gris_sample data type bug when use fp16
* fix gris_sample data type bug when use fp16
* fix v4rec batchsize
* fix bug of hang when multi gpus training(sampler)
* add rec algorithm cppd
* delete cppd useless code
* update cppd bug
* add rec algorithm cppd
* update cppd trainedmodel url
* add cppd en doc
2023-09-25 15:43:45 +08:00
xlg-go
ebc67db25b
rec_r45_abinet for export model ( #10892 )
...
* When exporting the inference model for ABINet, adapt to the 'image_shape' of ABINetRecResizeImg.
* restore h
2023-09-21 14:50:58 +08:00
ToddBear
75d16610f4
Add new recognition method "ParseQ" ( #10836 )
...
* 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 <dvorst@users.noreply.github.com>
Co-authored-by: shiyutang <34859558+shiyutang@users.noreply.github.com>
* 修改数据增强导致的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 <31891223+tink2123@users.noreply.github.com>
Co-authored-by: topduke <784990967@qq.com>
Co-authored-by: dyning <dyning.2003@163.com>
Co-authored-by: UserUnknownFactor <63057995+UserUnknownFactor@users.noreply.github.com>
Co-authored-by: itasli <ilyas.tasli@outlook.fr>
Co-authored-by: Kai Song <50285351+USTCKAY@users.noreply.github.com>
Co-authored-by: dvorst <87502756+dvorst@users.noreply.github.com>
Co-authored-by: Dennis <dvorst@users.noreply.github.com>
Co-authored-by: shiyutang <34859558+shiyutang@users.noreply.github.com>
Co-authored-by: Dec20B <1192152456@qq.com>
Co-authored-by: ncoffman <51147417+ncoffman@users.noreply.github.com>
2023-09-07 16:36:47 +08:00
xlg-go
63f5787bfa
ch_PP-OCRv4_rec_distill.yml, fix KeyError: 'NRTRLabelDecode' ( #10761 )
2023-08-31 14:25:43 +08:00
itasli
66461c3325
Cherrypicking GH-10251 & GH-10181 to PaddleOCR:dygraph ( #10710 )
...
* fix undefined save_model_dir when using wandb (#10251 )
* fix undefined save_model_dir when using wand
* Update program.py
* Fix fitz camelCase deprecation and .PDF not being recognized as pdf file (#10181 )
* Fix fitz camelCase deprecation and .PDF not being recognized as pdf file
* refactor get_image_file_list function
2023-08-30 10:21:29 +08:00
UserUnknownFactor
b3912fcf7a
Cherrypicking GH-10217 and GH-10216 to PaddlePaddle:dygraph ( #10654 )
...
* Don't break overall processing on a bad image
* Add preprocessing common to OCR tasks
Add preprocessing to options
2023-08-21 16:33:03 +08:00
zhoujun
dbf35bb714
onnxruntime support gpu ( #10668 )
...
* Update ch_PP-OCRv3_rec.yml
* Update ch_PP-OCRv3_rec_distillation.yml
* Update en_PP-OCRv3_rec.yml
* Update arabic_PP-OCRv3_rec.yml
* Update chinese_cht_PP-OCRv3_rec.yml
* Update cyrillic_PP-OCRv3_rec.yml
* Update devanagari_PP-OCRv3_rec.yml
* Update japan_PP-OCRv3_rec.yml
* Update ka_PP-OCRv3_rec.yml
* Update korean_PP-OCRv3_rec.yml
* Update latin_PP-OCRv3_rec.yml
* Update ta_PP-OCRv3_rec.yml
* Update te_PP-OCRv3_rec.yml
* Update utility.py
2023-08-17 18:26:20 +08:00
RuohengMa
2a4d551547
Fix seed passing issue of build_dataloader ( #10614 )
2023-08-11 14:11:13 +08:00
shiyutang
4a91a21245
compat_pillow ( #10596 )
2023-08-10 16:41:35 +08:00
ToddBear
b3f9f681d9
CV套件建设专项活动 - 文字识别返回单字识别坐标 ( #10515 ) ( #10537 )
...
* modification of return word box
* update_implements
* Update rec_postprocess.py
* Update utility.py
2023-08-10 15:12:01 +08:00
Lin Manhui
fec014e92d
Suppress scalar warnings ( #10509 )
2023-07-31 15:13:11 +08:00
livingbody
49d1a59572
upgrade pillow to 10.0.0 ( #10405 )
2023-07-17 14:42:30 +08:00
xiaoting
b0e3c3f2c7
clear fluid ( #10333 )
2023-07-10 14:12:40 +08:00
Lin Manhui
2d44a71b20
Toward Devkit Consistency ( #10150 )
...
* Accommodate UAPI
* Fix signal handler
* Save model.pdopt
* Change variable name
* Update vdl dir
2023-06-14 14:31:45 +08:00
Zhang Ting
6949448558
improve amp training ( #10119 )
2023-06-08 15:50:37 +08:00
xiaoting
096fd27121
fix sr_telescope ( #10004 )
2023-05-23 16:54:52 +08:00
topduke
425166434c
Fix grid_sample data type bug when use fp16 ( #9930 )
...
* fix gris_sample data type bug when use fp16
* fix gris_sample data type bug when use fp16
* fix v4rec batchsize
2023-05-15 17:03:53 +08:00
topduke
2a98d40b10
Add v4rec hgnet ( #9768 )
...
* v4rec code
* v4rec add nrtrloss
* Add V4rec backbone file
* Add V4Rec config file.
* Fix V4rec reparameters when export_model
* convert lvnetv3
* fix codestyle
* fix infer_rec v4rec
* add v4rec hgnet
* add v4rec hgnet config
* add svtr_hgnet
* fix bugs in infer_rec and hgnet
2023-04-21 12:34:48 +08:00
duanyanhui
ce65745755
update npu inference api ( #9765 )
2023-04-20 10:26:26 +08:00
Zhang Ting
d496c8e8d1
fix performance ( #9772 )
2023-04-20 09:53:31 +08:00
topduke
43abe2fa4b
V4Rec code pr ( #9725 )
...
* v4rec code
* v4rec add nrtrloss
* Add V4rec backbone file
* Add V4Rec config file.
* Fix V4rec reparameters when export_model
* convert lvnetv3
* fix codestyle
* fix infer_rec v4rec
2023-04-19 16:04:23 +08:00
duanyanhui
2d6f3a56a4
update npu api ( #9688 )
2023-04-11 09:56:08 +08:00
xiaoting
dd02918bb4
rename PP-OCRv3 algorithm to SVTR_LCNet ( #9025 )
...
* rename PP-OCRv3 algorithm to SVTR_LCNet
* rename PP-OCRv3 algorithm to SVTR_LCNet
* update multi-lang config for v3
2023-02-13 11:17:58 +08:00