HI all, Iām trying to test run a quick inference with Donut for document parsing. So Iām runnig this code:
from transformers import DonutProcessor, VisionEncoderDecoderModel
processor = DonutProcessor.from_pretrained(ānaver-clova-ix/donut-base-finetuned-cord-v2ā)
model = VisionEncoderDecoderModel.from_pretrained(ānaver-clova-ix/donut-base-finetuned-cord-v2ā)
ā¦but Iām getting this:
ImportError Traceback (most recent call last)
in ()
----> 1 from transformers import DonutProcessor, VisionEncoderDecoderModel
2
3 processor = DonutProcessor.from_pretrained(ānaver-clova-ix/donut-base-finetuned-cord-v2ā)
4 model = VisionEncoderDecoderModel.from_pretrained(ānaver-clova-ix/donut-base-finetuned-cord-v2ā)
ImportError: cannot import name āDonutProcessorā
I was wondering the latest version I pip installed (4.18.0), does not have the DonutProcessor library. Otherwise, how could I resolve this issue? Thx.