microsoft / unilm

Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities
https://aka.ms/GeneralAI
MIT License
19.9k stars 2.53k forks source link

Make a simple prediction from loaded pretrained model #334

Closed Momentum-TN closed 2 years ago

Momentum-TN commented 3 years ago

Hello, I am using LayoutLM (the deprecated version)

Is there a simple way to load the pretrained model and make a simple inference like the pytorch pre-trained resnet example?

ingaluxemburg commented 2 years ago

same question...

wolfshow commented 2 years ago

@Momentum-TN please refer to Hugging Face spaces, for example: https://huggingface.co/spaces/nielsr/LayoutLMv2-FUNSD