abhionair commited on
Commit
893369a
·
verified ·
1 Parent(s): ce35ba8

Update anpr.py

Browse files
Files changed (1) hide show
  1. anpr.py +2 -2
anpr.py CHANGED
@@ -15,8 +15,8 @@ INPUT_HEIGHT = 640
15
  #onnx_file_path = os.path.abspath('./static/models/best.onnx')
16
  onnx_file_path = os.path.abspath(r'./static/model/best.onnx')
17
  print(f"Attempting to load ONNX file from: {onnx_file_path}")
18
- processor = TrOCRProcessor.from_pretrained('microsoft/trocr-base-printed')
19
- model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-base-printed')
20
 
21
 
22
 
 
15
  #onnx_file_path = os.path.abspath('./static/models/best.onnx')
16
  onnx_file_path = os.path.abspath(r'./static/model/best.onnx')
17
  print(f"Attempting to load ONNX file from: {onnx_file_path}")
18
+ processor = TrOCRProcessor.from_pretrained('microsoft/trocr-small-printed')
19
+ model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-small-printed')
20
 
21
 
22