Skip to content

Commit

Permalink
fix bug where acc is always 0 during SLANet training (#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang-prog authored Nov 15, 2024
1 parent 6fd3944 commit 0b61316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions paddlex/repo_apis/PaddleOCR_api/configs/SLANet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Train:
size: [488, 488]
- ToCHWImage:
- KeepKeys:
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'shape' ]
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'length', 'shape' ]
loader:
shuffle: True
batch_size_per_card: 48
Expand Down Expand Up @@ -133,7 +133,7 @@ Eval:
size: [488, 488]
- ToCHWImage:
- KeepKeys:
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'shape' ]
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'length', 'shape' ]
loader:
shuffle: False
drop_last: False
Expand Down
4 changes: 2 additions & 2 deletions paddlex/repo_apis/PaddleOCR_api/configs/SLANet_plus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Train:
size: [488, 488]
- ToCHWImage:
- KeepKeys:
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'shape' ]
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'length', 'shape' ]
loader:
shuffle: True
batch_size_per_card: 48
Expand Down Expand Up @@ -133,7 +133,7 @@ Eval:
size: [488, 488]
- ToCHWImage:
- KeepKeys:
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'shape' ]
keep_keys: [ 'image', 'structure', 'bboxes', 'bbox_masks', 'length', 'shape' ]
loader:
shuffle: False
drop_last: False
Expand Down

0 comments on commit 0b61316

Please sign in to comment.