File size: 241 Bytes
5fa1a76
 
 
 
 
1
2
3
4
5
from transformers import AutoProcessor
processor = AutoProcessor.from_pretrained(model_checkpoint)

Preprocessing document images
First, let's prepare the document images for the model with the help of the image_processor from the processor.