Borg93 commited on
Commit
ccc2daa
·
unverified ·
1 Parent(s): d76b5dc

Update text_about.py

Browse files
Files changed (1) hide show
  1. helper/text/text_about.py +13 -9
helper/text/text_about.py CHANGED
@@ -19,7 +19,7 @@ class TextAbout:
19
  By training on only binarized images and by binarizing images before running them through the pipeline, we take the target domain closer to the training domain, and ruduce negative effects of background variation, background noise etc., on the final results.
20
  The pipeline implements a simple adaptive thresholding algorithm for binarization.
21
  <figure>
22
- <img src="https://raw.githubusercontent.com/Borg93/htr_gradio_file_placeholder/main/roadmap_image_2.png" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
23
  </figure>
24
 
25
  """
@@ -29,7 +29,7 @@ class TextAbout:
29
  The segmentation model utilized in this process predicts both bounding boxes and masks. Although the model has the capability to predict both, only the masks are utilized for the segmentation tasks of lines and regions.
30
  An essential post-processing step involves checking for regions that are contained within other regions. During this step, only the containing region is retained, while the contained region is discarded. This ensures that the final segmented text-regions are accurate and devoid of overlapping or redundant areas.
31
  <figure>
32
- <img src="https://raw.githubusercontent.com/Borg93/htr_gradio_file_placeholder/main/roadmap_image_2.png" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
33
  </figure>
34
  """
35
  text_line_segmentation = """
@@ -38,7 +38,7 @@ class TextAbout:
38
  This is also an RTMDet model that's trained on extracting text-lines from cropped text-regions within an image.
39
  The same post-processing on the instance segmentation masks is done here as in the text-region segmentation step.
40
  <figure>
41
- <img src="https://raw.githubusercontent.com/Borg93/htr_gradio_file_placeholder/main/roadmap_image_2.png" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
42
  </figure>
43
  """
44
  text_htr = """
@@ -47,20 +47,24 @@ class TextAbout:
47
  For the text-recognition a SATRN model was trained with mmocr on approximately one million handwritten text-line images ranging from 1600 to 1900.
48
  It was trained on a wide variety of archival material to make it generalize as well as possible. See below for detailed evaluation results, and also some finetuning experiments.
49
  <figure>
50
- <img src="https://raw.githubusercontent.com/Borg93/htr_gradio_file_placeholder/main/roadmap_image_2.png" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
51
  </figure>
52
  """
53
 
54
  text_data = """
55
- ## The Data
56
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
57
-
 
 
 
58
  """
59
 
60
  text_models = """
61
  ## The Models
62
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
63
-
 
64
  """
65
 
66
 
 
19
  By training on only binarized images and by binarizing images before running them through the pipeline, we take the target domain closer to the training domain, and ruduce negative effects of background variation, background noise etc., on the final results.
20
  The pipeline implements a simple adaptive thresholding algorithm for binarization.
21
  <figure>
22
+ <img src="https://github.com/Borg93/htr_gradio_file_placeholder/blob/main/app_project_bin.png?raw=true" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
23
  </figure>
24
 
25
  """
 
29
  The segmentation model utilized in this process predicts both bounding boxes and masks. Although the model has the capability to predict both, only the masks are utilized for the segmentation tasks of lines and regions.
30
  An essential post-processing step involves checking for regions that are contained within other regions. During this step, only the containing region is retained, while the contained region is discarded. This ensures that the final segmented text-regions are accurate and devoid of overlapping or redundant areas.
31
  <figure>
32
+ <img src="https://github.com/Borg93/htr_gradio_file_placeholder/blob/main/app_project_region.png?raw=true" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
33
  </figure>
34
  """
35
  text_line_segmentation = """
 
38
  This is also an RTMDet model that's trained on extracting text-lines from cropped text-regions within an image.
39
  The same post-processing on the instance segmentation masks is done here as in the text-region segmentation step.
40
  <figure>
41
+ <img src="https://github.com/Borg93/htr_gradio_file_placeholder/blob/main/app_project_line.png?raw=true" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
42
  </figure>
43
  """
44
  text_htr = """
 
47
  For the text-recognition a SATRN model was trained with mmocr on approximately one million handwritten text-line images ranging from 1600 to 1900.
48
  It was trained on a wide variety of archival material to make it generalize as well as possible. See below for detailed evaluation results, and also some finetuning experiments.
49
  <figure>
50
+ <img src="https://github.com/Borg93/htr_gradio_file_placeholder/blob/main/app_project_htr.png?raw=true" alt="HTR_tool" style="width:70%; display: block; margin-left: auto; margin-right:auto;" >
51
  </figure>
52
  """
53
 
54
  text_data = """
55
+
56
+ For a glimpse into the kind of data we're working with, you can explore our sample test data on Hugging Face:
57
+
58
+ [![Sample Test Data](https://img.shields.io/badge/Sample%20Test%20Data-View-blue.svg)](https://huggingface.co/datasets/Riksarkivet/test_images_demo)
59
+
60
+ **Note**: This is just a sample. The complete training dataset will be released in the future.
61
  """
62
 
63
  text_models = """
64
  ## The Models
65
+ For detailed information about all the models used in this project, please refer to the model cards available on Hugging Face:
66
+
67
+ [![Model Cards](https://img.shields.io/badge/Model%20Cards-View-blue.svg)](https://huggingface.co/Riksarkivet/HTR_pipeline_models)
68
  """
69
 
70