forked from PaddlePaddle/PaddleOCR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'PaddlePaddle:main' into main
- Loading branch information
Showing
677 changed files
with
45,913 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# PaddleOCR | ||
|
||
name: 🐛 Bug Report | ||
description: Problems with PaddleOCR | ||
labels: [bug] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for submitting a PaddleOCR 🐛 Bug Report! | ||
- type: checkboxes | ||
attributes: | ||
label: Search before asking | ||
description: > | ||
Please search the PaddleOCR [Docs](https://paddlepaddle.github.io/PaddleOCR/), [Issues](https://github.com/PaddlePaddle/PaddleOCR/issues) and [Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions) to see if a similar bug report already exists. | ||
options: | ||
- label: > | ||
I have searched the PaddleOCR [Docs](https://paddlepaddle.github.io/PaddleOCR/) and found no similar bug report. | ||
required: true | ||
- label: > | ||
I have searched the PaddleOCR [Issues](https://github.com/PaddlePaddle/PaddleOCR/issues) and found no similar bug report. | ||
required: true | ||
- label: > | ||
I have searched the PaddleOCR [Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions) and found no similar bug report. | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Bug | ||
description: Provide console output with error messages and/or screenshots of the bug. | ||
placeholder: | | ||
💡 ProTip! Include as much information as possible (screenshots, logs, tracebacks etc.) to receive the most helpful response. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: Please specify the software and hardware you used to produce the bug. | ||
placeholder: | | ||
``` | ||
OS macOS-13.5.2 | ||
Environment Jupyter | ||
Python 3.11.2 | ||
PaddleOCR 2.8.1 | ||
Install git | ||
RAM 16.00 GB | ||
CPU Apple M2 | ||
CUDA None | ||
``` | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
attributes: | ||
label: Minimal Reproducible Example | ||
description: > | ||
When asking a question, people will be better able to provide help if you provide code that they can easily understand and use to **reproduce** the problem. | ||
This is referred to by community members as creating a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). | ||
placeholder: | | ||
``` | ||
# Code to reproduce your issue here | ||
``` | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
attributes: | ||
label: Additional | ||
description: Anything else you would like to share? | ||
|
||
- type: checkboxes | ||
attributes: | ||
label: Are you willing to submit a PR? | ||
description: > | ||
(Optional) We encourage you to submit a [Pull Request](https://github.com/PaddlePaddle/PaddleOCR/pulls) (PR) to help improve PaddleOCR for everyone, especially if you have a good understanding of how to implement a fix or feature. | ||
See the PaddleOCR [community_contribution](https://paddlepaddle.github.io/PaddleOCR/community/community_contribution.html#2) to get started. | ||
options: | ||
- label: Yes I'd like to help by submitting a PR! |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: build_document_site | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material jieba mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 mkdocs-static-i18n | ||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.8.0 | ||
2.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
Global: | ||
debug: false | ||
use_gpu: true | ||
epoch_num: 200 | ||
log_smooth_window: 20 | ||
print_batch_step: 10 | ||
save_model_dir: ./output/rec_repsvtr_ch | ||
save_epoch_step: 10 | ||
eval_batch_step: [0, 1000] | ||
cal_metric_during_train: False | ||
pretrained_model: | ||
checkpoints: | ||
save_inference_dir: | ||
use_visualdl: false | ||
infer_img: doc/imgs_words/ch/word_1.jpg | ||
character_dict_path: ppocr/utils/ppocr_keys_v1.txt | ||
max_text_length: &max_text_length 25 | ||
infer_mode: false | ||
use_space_char: true | ||
distributed: true | ||
save_res_path: ./output/rec/predicts_repsvtr.txt | ||
|
||
Optimizer: | ||
name: AdamW | ||
beta1: 0.9 | ||
beta2: 0.999 | ||
epsilon: 1.e-8 | ||
weight_decay: 0.025 | ||
no_weight_decay_name: norm | ||
one_dim_param_no_weight_decay: True | ||
lr: | ||
name: Cosine | ||
learning_rate: 0.001 # 8gpus 192bs | ||
warmup_epoch: 5 | ||
|
||
|
||
Architecture: | ||
model_type: rec | ||
algorithm: SVTR_HGNet | ||
Transform: | ||
Backbone: | ||
name: RepSVTR | ||
Head: | ||
name: MultiHead | ||
head_list: | ||
- CTCHead: | ||
Neck: | ||
name: svtr | ||
dims: 256 | ||
depth: 2 | ||
hidden_dims: 256 | ||
kernel_size: [1, 3] | ||
use_guide: True | ||
Head: | ||
fc_decay: 0.00001 | ||
- NRTRHead: | ||
nrtr_dim: 384 | ||
max_text_length: *max_text_length | ||
num_decoder_layers: 2 | ||
|
||
Loss: | ||
name: MultiLoss | ||
loss_config_list: | ||
- CTCLoss: | ||
- NRTRLoss: | ||
|
||
PostProcess: | ||
name: CTCLabelDecode | ||
|
||
Metric: | ||
name: RecMetric | ||
main_indicator: acc | ||
|
||
|
||
Train: | ||
dataset: | ||
name: MultiScaleDataSet | ||
ds_width: false | ||
data_dir: ./train_data/ | ||
ext_op_transform_idx: 1 | ||
label_file_list: | ||
- ./train_data/train_list.txt | ||
transforms: | ||
- DecodeImage: | ||
img_mode: BGR | ||
channel_first: false | ||
- RecAug: | ||
- MultiLabelEncode: | ||
gtc_encode: NRTRLabelEncode | ||
- KeepKeys: | ||
keep_keys: | ||
- image | ||
- label_ctc | ||
- label_gtc | ||
- length | ||
- valid_ratio | ||
sampler: | ||
name: MultiScaleSampler | ||
scales: [[320, 32], [320, 48], [320, 64]] | ||
first_bs: &bs 192 | ||
fix_bs: false | ||
divided_factor: [8, 16] # w, h | ||
is_training: True | ||
loader: | ||
shuffle: true | ||
batch_size_per_card: *bs | ||
drop_last: true | ||
num_workers: 8 | ||
Eval: | ||
dataset: | ||
name: SimpleDataSet | ||
data_dir: ./train_data | ||
label_file_list: | ||
- ./train_data/val_list.txt | ||
transforms: | ||
- DecodeImage: | ||
img_mode: BGR | ||
channel_first: false | ||
- MultiLabelEncode: | ||
gtc_encode: NRTRLabelEncode | ||
- RecResizeImg: | ||
image_shape: [3, 48, 320] | ||
- KeepKeys: | ||
keep_keys: | ||
- image | ||
- label_ctc | ||
- label_gtc | ||
- length | ||
- valid_ratio | ||
loader: | ||
shuffle: false | ||
drop_last: false | ||
batch_size_per_card: 128 | ||
num_workers: 4 |
Oops, something went wrong.