刘维克
b1a525301e
fix train.log output ( #14846 ) ( #16281 )
...
The bug was introduced in commit e3145103 ("import encryption for aistudio & fix sync bn"),
where the following snippet:
```
try:
import encryption # Attempt to import the encryption module for AIStudio's encryption model
encrypted = encryption.is_encryption_needed()
except ImportError:
get_logger().warning("Skipping import of the encryption module.")
encrypted = False # Encryption is not needed if the module cannot be imported
```
caused `get_logger()` to be called too early, initializing the logger before
the training arguments were passed. As a result, the training process
skipped proper log redirection, and `train.log` was not created.
This patch replaces the warning with a simple `print()` statement,
ensuring the logger is only initialized after training args are passed.
Fixes #14846
2025-08-20 18:30:33 +08:00
zhangyubo0722
0cc9870eb3
fix pdmodel to json ( #15122 )
...
Co-authored-by: zhangyubo0722 <zangyubo0722@163.com>
2025-05-12 21:22:52 +08:00
zhangyubo0722
c8eb175db5
fix pdx_model_name ( #15104 )
...
Co-authored-by: zhangyubo0722 <zangyubo0722@163.com>
2025-05-07 19:33:00 +08:00
Tingquan Gao
b0ce52f729
save the inference model in json format by default ( #15022 )
2025-04-17 20:17:34 +08:00
zhangyubo0722
e314510319
import encryption for aistudio & fix sync bn
2025-01-03 15:34:29 +08:00
zhangyubo0722
1d4e7a80a0
rename train result ( #14217 )
2024-11-13 15:49:52 +08:00
Christian Clauss
9b92a1c661
Remove Python 2 compatibility dependency six ( #14202 )
...
* Remove Python 2 compatibility dependency
* Remove Python 2 compatibility dependency six
* Update operators.py
* Remove Python 2 compatibility dependency six
2024-11-12 11:01:20 +08:00
zhangyubo0722
362103bd0b
fix lateocr bug ( #13920 )
2024-09-28 19:11:31 +08:00
zhangyubo0722
2b51369324
support export after save model ( #13844 )
2024-09-25 01:11:01 +08:00
zhangyubo0722
6c12df47b2
merge release/2.6.1 to main ( #13523 )
2024-07-29 19:09:42 +08:00
jzhang533
a2ad2124c7
commit fix by running pre-commit run -a ( #12165 )
2024-05-24 12:12:42 +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
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
zhoujun
623424fce0
support auto download model from bos ( #9349 )
2023-03-08 19:21:28 +08:00
WenmuZhou
2b1885f159
Merge branch 'dygraph' of https://github.com/PaddlePaddle/PaddleOCR into tipc
2022-08-22 11:33:51 +00:00
WenmuZhou
c4fd53070e
update fp16 load
2022-08-22 11:33:00 +00:00
WenmuZhou
66f4ae0261
fix is_nlp_model not define error in save_model
2022-08-22 02:25:24 +00:00
littletomatodonkey
8c7c45420f
polish kie doc and code ( #7255 )
...
* add fapiao kie
* fix readme
* fix fanli
* add readme
* add how to do kie en
* add algo kie
* add algo overview en
* rename vqa to kie
* fix read gif
2022-08-21 10:55:49 +08:00
littletomatodonkey
78871cfefb
kie doc ( #7154 )
...
* kie doc
* fix xlm model export
* fix doc
* add wildreceipt dataset
* fix doc
* fix doc
2022-08-15 11:39:11 +08:00
xiaoting
7054013004
Submit SR model ( #6933 )
...
* add sr model
* update for eval
* submit sr
* polish code
* polish code
* polish code
* update sr model
* update doc
* update doc
* update doc
* fix typo
* format code
* update metric
* fix export
2022-08-12 10:49:54 +08:00
andyjpaddle
44852aae0c
Merge pull request #7109 from WenmuZhou/tipc1
...
convert fp16 params to fp32 when params is fp16 format
2022-08-08 19:30:44 +08:00
littletomatodonkey
9e4ae9dc12
add vqa code ( #7096 )
...
* add vqa code
* add order ocr info
* rename tb-yx order
* polish configs
* add trt offline-tuning
* fix seed and remove unused configs
2022-08-06 15:41:20 +08:00
WenmuZhou
c6738f4c53
convert fp16 params to fp32 when params is fp16 format
2022-08-05 12:50:25 +08:00
WenmuZhou
d0efcc74c9
convert fp16 params to fp32 when params is fp16 format
2022-08-05 12:41:03 +08:00
zhoujun
079cdf980c
update save model func ( #6693 )
...
* save latest metric
* save latest metric
* add boader judge
* add boader judge
2022-06-27 00:49:00 +08:00
WenmuZhou
0d7ee96807
Merge branch 'dygraph' of https://github.com/PaddlePaddle/PaddleOCR into fix_vqa
2022-01-05 11:08:12 +00:00
WenmuZhou
a323fce66d
vqa code integrated into ppocr training system
2022-01-05 11:03:45 +00:00
tink2123
3647c3188e
fix save load, update det pretrain
2022-01-05 15:35:12 +08:00
WenmuZhou
7c15d1b790
change is to does
2021-11-29 08:38:15 +00:00
WenmuZhou
8ffa50feb7
opt load model
2021-11-26 06:50:03 +00:00
WenmuZhou
7f1badf74c
pair param with key when load trained model params
2021-11-24 10:23:06 +00:00
WenmuZhou
4a6f7ceca6
pair param with key when load trained model params
2021-11-24 09:40:33 +00:00
WenmuZhou
91b79f6929
pair param with key when load trained model params
2021-11-24 09:28:34 +00:00
zhoujun
ae4167dc32
merge init_model and load_dygraph_params to load_model ( #4623 )
...
* merge init_model and load_dygraph_params to load_model
2021-11-12 11:06:36 +08:00
littletomatodonkey
cc24646a87
fix rec distillation ( #3995 )
...
* fix rec distillation
* add dist cfg
* fix cfg
2021-09-09 23:51:48 +08:00
zhoujun
2062b5097c
Merge pull request #3273 from LDOUBLEV/distill
...
Add det distill
2021-07-12 12:21:46 +08:00
LDOUBLEV
b8a65d4333
fix eval bug
2021-07-08 14:32:44 +00:00
LDOUBLEV
0742f5c521
fix metric etc.al
2021-07-07 07:54:02 +00:00
LDOUBLEV
185d1e1f92
fix bug
2021-07-07 01:54:03 +00:00
bingooo
61cee7e663
fix bug
2021-07-01 15:41:02 +08:00
bingooo
3a2d0f61ee
fix bug
2021-07-01 15:26:55 +08:00
Double_V
be181cb3bd
add new load dygraph func ( #3088 )
...
* add new load dygraph func
* update load_pretrain_params
* update load_dygrah_params
* Update save_load.py
* Update train.py
* Update save_load.py
* return {} when path is None
* return {} when path is None
2021-06-28 20:44:06 +08:00
littletomatodonkey
48d8537959
rm load_dyg_pretrain
2021-06-05 06:52:45 +00:00
littletomatodonkey
e5d3a2d880
fix distillation arch and model init
2021-06-03 05:30:43 +00:00
littletomatodonkey
ed02b91d26
add distillation function
2021-06-02 08:31:57 +00:00
YukSing
d1a7d35c4b
Update save_load.py
...
Fixed variable name
2021-05-23 19:16:01 +08:00
zhoujun
c27022294e
add global_step to .states files ( #2566 )
...
Co-authored-by: littletomatodonkey <2120160898@bit.edu.cn>
2021-04-27 10:13:21 +08:00
WenmuZhou
39955558b8
fix bugs
2020-12-16 19:41:44 +08:00
LDOUBLEV
5f2f08a09c
add ppocr_v2 ch_db
2020-12-09 14:59:04 +08:00
WenmuZhou
4d775dc98f
rc版本适配
2020-11-09 18:20:03 +08:00