Serovvans commited on
Commit
c235ccd
·
verified ·
1 Parent(s): 97bac1d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -11,11 +11,11 @@ The model is trained to recognize printed texts in Old Russian language
11
  ### Base-usage
12
  ```python
13
  from PIL import Image
14
- from transformers import VisionEncoderDecoderModel
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
 
11
  ### Base-usage
12
  ```python
13
  from PIL import Image
14
+ from transformers import TrOCRProcessor, VisionEncoderDecoderModel
15
 
16
  hf_model = VisionEncoderDecoderModel.from_pretrained("Serovvans/trocr-old-russian")
17
 
18
+ image = Image.open("./path/to/your/image")
19
 
20
  processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-printed")
21
  pixel_values = processor(images=image, return_tensors="pt").pixel_values