-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new integrations test and fix docker build on github AB#1035
- Loading branch information
borg
committed
Oct 17, 2024
1 parent
b265de9
commit d788114
Showing
11 changed files
with
147 additions
and
42 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
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
File renamed without changes
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
13 changes: 13 additions & 0 deletions
13
tests/integration/data/pipelines/test_gpu_opennmlab_htr_pipeline.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,13 @@ | ||
# HTR pipeline | ||
|
||
steps: | ||
|
||
- step: TextRecognition | ||
settings: | ||
model: Satrn | ||
model_settings: | ||
model: Riksarkivet/satrn_htr | ||
generation_settings: | ||
batch_size: 1 | ||
num_beams: 1 | ||
|
52 changes: 52 additions & 0 deletions
52
tests/integration/data/pipelines/test_gpu_svea_htr_pipeline.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,52 @@ | ||
# HTRFlow demo pipeline | ||
# This pipeline works well on pages with running text | ||
|
||
steps: | ||
|
||
# Region segmentation | ||
- step: Segmentation | ||
settings: | ||
model: yolo | ||
model_settings: | ||
model: Riksarkivet/yolov9-regions-1 | ||
generation_settings: | ||
batch_size: 1 | ||
# Line segementation | ||
- step: Segmentation | ||
settings: | ||
model: yolo | ||
model_settings: | ||
model: Riksarkivet/yolov9-lines-within-regions-1 | ||
generation_settings: | ||
batch_size: 1 | ||
# Text recognition | ||
- step: TextRecognition | ||
settings: | ||
model: WordLevelTrocr | ||
model_settings: | ||
model: Riksarkivet/trocr-base-handwritten-hist-swe-2 | ||
generation_settings: | ||
batch_size: 1 | ||
num_beams: 1 | ||
# Order regions by reading order | ||
- step: ReadingOrderMarginalia | ||
settings: | ||
two_page: always | ||
# Export to Alto and Page XML | ||
- step: Export | ||
settings: | ||
dest: outputs/alto | ||
format: alto | ||
- step: Export | ||
settings: | ||
dest: outputs/page | ||
format: page | ||
|
||
# Sets label format to regionX_lineY_wordZ | ||
labels: | ||
level_labels: | ||
- region | ||
- line | ||
- word | ||
sep: _ | ||
template: "{label}{number}" |
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