update model card README.md a086fcd
tran commited on
How to use quangtran199hust/layoutlmv2_e with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="quangtran199hust/layoutlmv2_e") # Load model directly
from transformers import AutoProcessor, AutoModelForTokenClassification
processor = AutoProcessor.from_pretrained("quangtran199hust/layoutlmv2_e")
model = AutoModelForTokenClassification.from_pretrained("quangtran199hust/layoutlmv2_e", device_map="auto")