`AutoProcessor` cannot load the processor properly

#2
by alifarokh - opened

Hi everyone.
The sample code in the model card cannot load the processor properly. Here is the code and the result:

from transformers import AutoProcessor
processor = AutoProcessor.from_pretrained("facebook/encodec_24khz")

Result:

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.

The code is tested both on my local server and on Google Colab. Also, I have tried different versions of transformers (4.31.0, 4.32.0, etc.)
Please let me know how I can fix the problem.
Thank you in advance.

Sign up or log in to comment