Failed to download Donut Processor

#3
by paturi1710 - opened

Hi,

I am trying to download donut processor using the following command.

processor = DonutProcessor.from_pretrained("naver-clova-ix/donut-base")

Earlier it used to download and work fine.
Today, it is giving the below warning.

"Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration."

When trying to set the feature extractor size for the processor, it is failing by complaining donut processor has no feature_extractor attribute.

Earlier this used to work. Can you please let us know why this is failing?
I am using Transformer version 4.25.1

Hi @paturi1710 I'm facing the same problem. Could you solve it?

Roll back to previous version of transformers 4.23.1
Looks like some bug in latest version..

@smartlens I realized that maybe is because its release (https://github.com/huggingface/transformers/releases). Look the Image processors Section. Btw, was you able to finetune donut model? how long it take to you? Im using GPU but it is taking a lot and doesn't display a progress bar so I don't know how much left

Yes I am able to fine tune. I tried on google colab

This comment has been hidden

Sign up or log in to comment