Transformers How to use muzedotso/encoder-image-trocr with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-feature-extraction", model="muzedotso/encoder-image-trocr") # Load model directly
from transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("muzedotso/encoder-image-trocr")
model = AutoModel.from_pretrained("muzedotso/encoder-image-trocr")