Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace imgaug with albumentations #13467

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.8.1
2.8.2
4 changes: 2 additions & 2 deletions benchmark/PaddleOCR_DBNet/config/SynthText.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ dataset:
pre_processes: # 数据的预处理过程,包含augment和标签制作
- type: IaaAugment # 使用imgaug进行变换
args:
- {'type':Fliplr, 'args':{'p':0.5}}
- {'type':HorizontalFlip, 'args':{'p':0.5}}
- {'type': Affine, 'args':{'rotate':[-10,10]}}
- {'type':Resize,'args':{'size':[0.5,3]}}
- {'type':RandomScale ,'args':{'scale_limit':[0.5,3]}}
- type: EastRandomCropData
args:
size: [640,640]
Expand Down
4 changes: 2 additions & 2 deletions benchmark/PaddleOCR_DBNet/config/icdar2015.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ dataset:
pre_processes: # 数据的预处理过程,包含augment和标签制作
- type: IaaAugment # 使用imgaug进行变换
args:
- {'type':Fliplr, 'args':{'p':0.5}}
- {'type':HorizontalFlip, 'args':{'p':0.5}}
- {'type': Affine, 'args':{'rotate':[-10,10]}}
- {'type':Resize,'args':{'size':[0.5,3]}}
- {'type':RandomScale ,'args':{'scale_limit':[0.5,3]}}
- type: EastRandomCropData
args:
size: [640,640]
Expand Down
4 changes: 2 additions & 2 deletions benchmark/PaddleOCR_DBNet/config/open_dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ dataset:
pre_processes: # 数据的预处理过程,包含augment和标签制作
- type: IaaAugment # 使用imgaug进行变换
args:
- {'type':Fliplr, 'args':{'p':0.5}}
- {'type':HorizontalFlip, 'args':{'p':0.5}}
- {'type': Affine, 'args':{'rotate':[-10,10]}}
- {'type':Resize,'args':{'size':[0.5,3]}}
- {'type':RandomScale ,'args':{'scale_limit':[0.5,3]}}
- type: EastRandomCropData
args:
size: [640,640]
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ Train:
- CopyPaste:
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_distill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ Train:
- CopyPaste:
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_dml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ Train:
- CopyPaste:
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ Train:
- DetLabelEncode: # Class handling label
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
6 changes: 3 additions & 3 deletions configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ Train:
- CopyPaste:
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_dml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ Train:
- CopyPaste:
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
6 changes: 3 additions & 3 deletions configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ Train:
- DetLabelEncode: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
6 changes: 3 additions & 3 deletions configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ Train:
- DetLabelEncode: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
6 changes: 3 additions & 3 deletions configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ Train:
- CopyPaste: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
6 changes: 3 additions & 3 deletions configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_teacher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ Train:
- CopyPaste: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ Train:
- DetLabelEncode: # Class handling label
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
4 changes: 2 additions & 2 deletions configs/det/ch_ppocr_v2.0/ch_det_res18_db_v2.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ Train:
- DetLabelEncode: # Class handling label
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
4 changes: 2 additions & 2 deletions configs/det/det_mv3_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ Train:
- DetLabelEncode: # Class handling label
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [640, 640]
max_tries: 50
Expand Down
4 changes: 2 additions & 2 deletions configs/det/det_mv3_pse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ Train:
saturation: 0.5
- IaaAugment:
augmenter_args:
- { 'type': Resize, 'args': { 'size': [ 0.5, 3 ] } }
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': RandomScale, 'args': { 'scale_limit': ( 0.5, 3 ) } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [ -10, 10 ] } }
- MakePseGt:
kernel_num: 7
Expand Down
6 changes: 3 additions & 3 deletions configs/det/det_r50_db++_icdar15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ Train:
- DetLabelEncode: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
6 changes: 3 additions & 3 deletions configs/det/det_r50_db++_td_tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ Train:
- DetLabelEncode: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
2 changes: 1 addition & 1 deletion configs/det/det_r50_drrg_ctw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Train:
pad_ratio: 0.6
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- DRRGTargets:
- NormalizeImage:
scale: 1./255.
Expand Down
4 changes: 2 additions & 2 deletions configs/det/det_r50_vd_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Train:
- DetLabelEncode: # Class handling label
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [640, 640]
max_tries: 50
Expand Down
2 changes: 1 addition & 1 deletion configs/det/det_r50_vd_dcn_fce_ctw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Train:
pad_ratio: 0.6
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- FCENetTargets:
fourier_degree: 5
- NormalizeImage:
Expand Down
4 changes: 2 additions & 2 deletions configs/det/det_r50_vd_pse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Train:
saturation: 0.5
- IaaAugment:
augmenter_args:
- { 'type': Resize, 'args': { 'size': [ 0.5, 3 ] } }
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': RandomScale , 'args': { 'scale_limit': [ 0.5, 3 ] } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [ -10, 10 ] } }
- MakePseGt:
kernel_num: 7
Expand Down
6 changes: 3 additions & 3 deletions configs/det/det_repsvtr_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ Train:
- CopyPaste: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
4 changes: 2 additions & 2 deletions configs/det/det_res18_db_v2.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ Train:
- DetLabelEncode: # Class handling label
- IaaAugment:
augmenter_args:
- { 'type': Fliplr, 'args': { 'p': 0.5 } }
- { 'type': HorizontalFlip, 'args': { 'p': 0.5 } }
- { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
- { 'type': RandomScale , 'args': { 'scale_limit': [0.5, 3] } }
- EastRandomCropData:
size: [960, 960]
max_tries: 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ Train:
- DetLabelEncode: null
- IaaAugment:
augmenter_args:
- type: Fliplr
- type: HorizontalFlip
args:
p: 0.5
- type: Affine
args:
rotate:
- -10
- 10
- type: Resize
- type: RandomScale
args:
size:
scale_limit:
- 0.5
- 3
- EastRandomCropData:
Expand Down
Loading