Instructions to use hf-internal-testing/tiny-random-layoutlmv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-layoutlmv2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="hf-internal-testing/tiny-random-layoutlmv2")# Load model directly from transformers import AutoProcessor, AutoModelForDocumentQuestionAnswering processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-layoutlmv2") model = AutoModelForDocumentQuestionAnswering.from_pretrained("hf-internal-testing/tiny-random-layoutlmv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
76879ee | 1 2 3 4 5 6 7 8 | {
"apply_ocr": true,
"do_resize": true,
"feature_extractor_type": "LayoutLMv2FeatureExtractor",
"resample": 2,
"size": 224
}
|