-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add params for ocr det * add params for ocr det * adddet v3 * adddet v3 infer * adddet v3 infer * adddet ocr params
- Loading branch information
Showing
9 changed files
with
590 additions
and
45 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
paddlex/configs/modules/text_detection/PP-OCRv3_mobile_det.yaml
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,40 @@ | ||
Global: | ||
model: PP-OCRv3_mobile_det | ||
mode: check_dataset # check_dataset/train/evaluate/predict | ||
module: text_det | ||
dataset_dir: "/paddle/dataset/paddlex/ocr_det/ocr_det_dataset_examples" | ||
device: gpu:0,1,2,3 | ||
output: "output" | ||
|
||
CheckDataset: | ||
convert: | ||
enable: False | ||
src_dataset_type: null | ||
split: | ||
enable: False | ||
train_percent: null | ||
val_percent: null | ||
|
||
Train: | ||
epochs_iters: 100 | ||
batch_size: 4 | ||
learning_rate: 0.001 | ||
pretrain_weight_path: https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/PP-OCRv3_mobile_det_pretrained.pdparams | ||
resume_path: null | ||
log_interval: 10 | ||
eval_interval: 1 | ||
save_interval: 1 | ||
|
||
Evaluate: | ||
weight_path: "output/best_accuracy/best_accuracy.pdparams" | ||
log_interval: 1 | ||
|
||
Export: | ||
weight_path: https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/PP-OCRv3_mobile_det_pretrained.pdparams | ||
|
||
Predict: | ||
batch_size: 1 | ||
model_dir: "output/best_accuracy/inference" | ||
input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/general_ocr_001.png" | ||
kernel_option: | ||
run_mode: paddle |
40 changes: 40 additions & 0 deletions
40
paddlex/configs/modules/text_detection/PP-OCRv3_server_det.yaml
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,40 @@ | ||
Global: | ||
model: PP-OCRv3_server_det | ||
mode: check_dataset # check_dataset/train/evaluate/predict | ||
module: text_det | ||
dataset_dir: "/paddle/dataset/paddlex/ocr_det/ocr_det_dataset_examples" | ||
device: gpu:0,1,2,3 | ||
output: "output" | ||
|
||
CheckDataset: | ||
convert: | ||
enable: False | ||
src_dataset_type: null | ||
split: | ||
enable: False | ||
train_percent: null | ||
val_percent: null | ||
|
||
Train: | ||
epochs_iters: 100 | ||
batch_size: 4 | ||
learning_rate: 0.001 | ||
pretrain_weight_path: https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/PP-OCRv3_server_det_pretrained.pdparams | ||
resume_path: null | ||
log_interval: 10 | ||
eval_interval: 1 | ||
save_interval: 1 | ||
|
||
Evaluate: | ||
weight_path: "output/best_accuracy/best_accuracy.pdparams" | ||
log_interval: 1 | ||
|
||
Export: | ||
weight_path: https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/PP-OCRv3_server_det_pretrained.pdparams | ||
|
||
Predict: | ||
batch_size: 1 | ||
model_dir: "output/best_accuracy/inference" | ||
input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/general_ocr_001.png" | ||
kernel_option: | ||
run_mode: paddle |
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
Oops, something went wrong.