Spaces:
Runtime error
Runtime error
Update anpr.py
Browse files
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-
|
19 |
-
model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-
|
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 |
|