DocBank
DocBank copied to clipboard
errors when I was using huggingface to load pretrained_weights
Hi!I am using huggingface to the pretrained_weights of layoutlm_large_500k_epoch_1.But huggingface shows me the errors as below:
Traceback (most recent call last):
File "D:\SoulCode\PaddleDetection\DocBank\DocBank_infer.py", line 8, in
Codes as below: from transformers import AutoTokenizer,LayoutLMForTokenClassification
import torch
tokenizer = AutoTokenizer.from_pretrained('D:\Download\layoutlm_large_500k_epoch_1') model = LayoutLMForTokenClassification.from_pretrained("D:\Download\layoutlm_large_500k_epoch_1")
How can I deal with it?Thanks!