Serovvans commited on
Commit
c518d3c
1 Parent(s): 8414af9

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ license: openrail
4
  # trocr-old-russian
5
  ## Info
6
  The model is trained to recognize printed texts in Old Russian language
7
- - Use Use microsoft/trocr-small-printed as base model for fine-tune.
8
  - Fine-tune on 636k text images
9
 
10
  ## Usage
@@ -15,7 +15,7 @@ from transformers import VisionEncoderDecoderModel
15
 
16
  hf_model = VisionEncoderDecoderModel.from_pretrained("Serovvans/trocr-old-russian")
17
 
18
- image = Image.open("./books_rows/C3V14/rows/page499_row_531_887_999_921.png")
19
 
20
  processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-printed")
21
  pixel_values = processor(images=image, return_tensors="pt").pixel_values
 
4
  # trocr-old-russian
5
  ## Info
6
  The model is trained to recognize printed texts in Old Russian language
7
+ - Use microsoft/trocr-small-printed as base model for fine-tune.
8
  - Fine-tune on 636k text images
9
 
10
  ## Usage
 
15
 
16
  hf_model = VisionEncoderDecoderModel.from_pretrained("Serovvans/trocr-old-russian")
17
 
18
+ image = Image.open("./path/to/yout/image")
19
 
20
  processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-printed")
21
  pixel_values = processor(images=image, return_tensors="pt").pixel_values