Commit Graph

888 Commits (release/2.7)

Author SHA1 Message Date
jzhang533 0b91f4dd50
This is a combination of 59 commits from v2.7.0 to v2.7.1 in (#11831)
release/2.7.1 branch

Co-authored-by: ToddBear <43341135+ToddBear@users.noreply.github.com>
2024-03-29 10:39:03 +08:00
jzhang533 ddaa85ddaf
Prepare 2.7.3 release (#11826)
* fix: Correct misuse of `try_import` from `paddle.utils` (#11820)

This commit addresses the incorrect usage of the `try_import` function from `paddle.utils` in both `ppocr/utils/utility.py` and `ppstructure/pdf2word/pdf2word.py`.

* bump version to 2.7.3

---------

Co-authored-by: NeterOster <neteroster@gmail.com>
2024-03-28 11:43:15 +08:00
jzhang533 69832ab532
lazy import PyMuPDF (#11685) 2024-03-07 11:23:05 +08:00
Xue Yadong c75b90cdf9
fix bug for rec_postprocess.py (#11408) 2023-12-27 19:53:42 +08:00
Kai Song 344b7594e4
[TIPC]update tipc scripts and rm fluid api (#11098)
* [TIPC]update xpu tipc script

* update tipc scripts and remove fluid api
2023-10-19 10:45:10 +08:00
Nyakku Shigure dc3fb008df
fix `cls_x` and `bbox_x` is possibly unbound (#10973) 2023-09-25 15:23:48 +08:00
Tommi Savikko 5ce67ec2e7
add finnish language files (#10850) 2023-09-22 10:06:29 +08:00
itasli 9ef797a2d2
Fix fitz camelCase deprecation and .PDF not being recognized as pdf file (#10181) (#10707)
* Fix fitz camelCase deprecation and .PDF not being recognized as pdf file

* refactor get_image_file_list function
2023-08-23 15:46:25 +08:00
Dec20B b318d204fa
修改数据增强导致的DSR报错 (#10662) (#10681)
* 修改数据增强导致的DSR报错

* 错误修改回滚
2023-08-20 14:56:28 +08:00
UserUnknownFactor b17c2f3a56
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
2023-08-16 18:54:43 +08:00
wuyefeilin 233658adb1
add dataset alias for PaddleX (#10528) 2023-08-02 10:59:32 +08:00
wanghuancoder 51aa02f97d
paddle support stride, fix dy2st check (#10498) 2023-08-01 19:05:10 +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 82c6434d53
Fix attribute error on win (#10209) 2023-06-20 10:47:07 +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
gmm cdf6d1fb42
fix profile (#10121) 2023-06-08 18:54:29 +08:00
zxcd 46a6950e7a
add dtype param for arange API. (#10075) 2023-06-02 14:21:17 +08:00
huangjun12 0e9c6630ee
fix det v4 bug in dynamic ratio (#9874)
* fix set bug

* refine 960 to 640

* fix details

* add epoch num

* add rep export

* use db head
2023-05-24 14:59:36 +08:00
xiaoting 096fd27121
fix sr_telescope (#10004) 2023-05-23 16:54:52 +08:00
topduke 2c0664b241
fix bug when multi gpus training(sampler) (#9963)
* 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)
2023-05-17 19:30:33 +08:00
Double_V abc4be007e
add nrtr dml distill loss (#9968)
* support min_area_rect crop

* add check_install

* fix requirement.txt

* fix check_install

* add lanms-neo for drrg

* fix

* fix doc

* fix

* support set gpu_id when inference

* fix #8855

* fix #8855

* opt slim doc

* fix doc bug

* add v4_rec_distill config

* delete debug

* fix comment

* fix comment

* add dml nrtr distill loss
2023-05-17 16:45:04 +08:00
Double_V 1643f268d3
add V4 rec distill (#9921)
* support min_area_rect crop

* add check_install

* fix requirement.txt

* fix check_install

* add lanms-neo for drrg

* fix

* fix doc

* fix

* support set gpu_id when inference

* fix #8855

* fix #8855

* opt slim doc

* fix doc bug

* add v4_rec_distill config

* delete debug

* fix comment

* fix comment
2023-05-15 20:32:48 +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
Double_V 24ff4def48
Pfhead (#9898)
* support min_area_rect crop

* add check_install

* fix requirement.txt

* fix check_install

* add lanms-neo for drrg

* fix

* fix doc

* fix

* support set gpu_id when inference

* fix #8855

* fix #8855

* opt slim doc

* fix doc bug

* rename

* rename
2023-05-15 10:57:30 +08:00
xiaoting 7e0c8aea84
revert eval mode (#9843)
* revert eval mode

* update hgnet config
2023-05-04 12:59:55 +08:00
xiaoting b3066812fc
Multi scale (#9837)
* update for multi scale

* update for multi scale

* update for multi scale

* rm notes
2023-04-28 11:04:01 +08:00
xiaoting 26519a6d17
update PPLCNetV3 name (#9802) 2023-04-23 16:13:01 +08:00
huangjun12 ca8c8200ba
add PP-OCRv4 det code (#9766)
* add ppocrv4 det student and teacher model

* update head and config, refine details

* refine config and head details

* refine config and head details

* refine details

* refine details

* remove application

* refine fpn

* fix bug

* update code

* fix bug

* align lcnet to rec

* align hgnet to rec

* refine make shrink

* remove theseus layer
2023-04-21 18:10:26 +08:00
user3984 7710ee04c6
fix data type error when training with fp16 and DynamicToStatic (#9696)
Co-authored-by: WenmuZhou <572459439@qq.com>
2023-04-21 13:53:09 +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
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
zhoujun 20cb993cb6
add d2t train support of svtr (#9479)
* add d2s train for slanet and v3

* fix bug

* udpate tipc to_static

* update db

* remove_print

* update benchmark_train.sh

* update maybe_download_params

* add d2t train support of svtr
2023-03-20 17:26:19 +08:00
xiaoting 1e8b7eb510
rever 'limit maximum resizing ratio' (#9448) 2023-03-15 18:49:45 +08:00
zhoujun 36ec3a406c
update tipc to_static (#9369)
* add d2s train for slanet and v3

* fix bug

* udpate tipc to_static

* update db

* remove_print

* update benchmark_train.sh

* update maybe_download_params
2023-03-10 19:07:37 +08:00
zhoujun 2e05d54af8
add d2s train for slanet and v3 (#9341)
* add d2s train for slanet and v3

* fix bug
2023-03-09 11:21:34 +08:00
zhoujun 623424fce0
support auto download model from bos (#9349) 2023-03-08 19:21:28 +08:00
zhoujun 1139a6c9ec
add table master to benchmark (#9107)
* Add custom detection and recognition model usage instructions in re

* update

* Add custom detection and recognition model usage instructions in re

* add db net for benchmark

* rename benckmark to PaddleOCR_benchmark

* add addict to req

* rename

* add table master benckmark

* support tablemaster d2s train
2023-02-22 15:25:05 +08:00
topduke bfa05707dd
fix nrtr posrprocess lower in chinese (#9103) 2023-02-20 09:39:15 +08:00
Double_V 4fd68e9bd5
fix east post process of dygraph (#9099)
* support min_area_rect crop

* add check_install

* fix requirement.txt

* fix check_install

* add lanms-neo for drrg

* fix

* fix doc

* fix

* support set gpu_id when inference

* fix #8855

* fix #8855

* opt slim doc

* fix doc bug

* fix east postprocess
2023-02-16 12:33:29 +08:00
topduke 72d91eab11
update Blur to fix training time consumption (#9068)
* fix piecewise boundaries and droppath dtype

* fix tipc piecewise boundaries and droppath dtype

* update Blur to fix training time consumption
2023-02-14 16:04:19 +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
zhiminzhang0830 30201ef954
add satrn (#8433)
* add satrn

* 修复satrn导出问题

* 规范satrn config文件

* 删除SATRNRecResizeImg

---------

Co-authored-by: zhiminzhang0830 <zhangzhimin04@baidu.com>
2023-02-08 11:25:50 +08:00
topduke 8a45b5e08c
Fix piecewise boundaries and droppath dtype (#8988)
* fix piecewise boundaries and droppath dtype

* fix tipc piecewise boundaries and droppath dtype
2023-02-07 13:57:24 +08:00
Double_V 3629d5a365
support set gpu_id when inference (#8926)
* support min_area_rect crop

* add check_install

* fix requirement.txt

* fix check_install

* add lanms-neo for drrg

* fix

* fix doc

* fix

* support set gpu_id when inference

* fix #8855

* fix #8855
2023-01-30 18:46:41 +08:00
andyj 9059f747e6
support new version of numpy (#8921)
* add finetune en doc & test=document_fix

* fix dead link & test=document_fix

* fix dead link & test=document_fix

* update check img

* fix det res dtype

* update args default type & test=document_fix

* fix numpy version

* support numpy1.24.0
2023-01-30 16:05:14 +08:00
topduke 955c46e0c5
add svtr FAQ and data_aug (#8864) 2023-01-19 22:14:28 +08:00
Double_V 414bf18a20
fix issue 9659 and doc (#8690) 2022-12-23 10:02:45 +08:00
xiaoting ca8de0c69e
fix aster loss for axis (#8675) 2022-12-20 13:58:57 +08:00
Double_V 5cac747656
[bug] fix issues about sort_function and DB Head (#8580)
* support min_area_rect crop

* add check_install

* fix requirement.txt

* fix check_install

* add lanms-neo for drrg

* fix

* fix doc

* fix
2022-12-13 16:26:42 +08:00