数据增强加入了是否只针对扫描件的选项
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@
|
|||||||
**/.cache
|
**/.cache
|
||||||
**/tmp*
|
**/tmp*
|
||||||
**/data
|
**/data
|
||||||
|
**/ckpt
|
||||||
@@ -16,7 +16,7 @@ from ...globals import (
|
|||||||
MAX_RESIZE_RATIO, MIN_RESIZE_RATIO
|
MAX_RESIZE_RATIO, MIN_RESIZE_RATIO
|
||||||
)
|
)
|
||||||
|
|
||||||
train_pipeline = default_augraphy_pipeline()
|
train_pipeline = default_augraphy_pipeline(scan_only=True)
|
||||||
|
|
||||||
general_transform_pipeline = v2.Compose([
|
general_transform_pipeline = v2.Compose([
|
||||||
v2.ToImage(), # Convert to tensor, only needed if you had a PIL image
|
v2.ToImage(), # Convert to tensor, only needed if you had a PIL image
|
||||||
|
|||||||
Reference in New Issue
Block a user