Strange error requiring `model_type`
I see this error when trying to configure a few examples for this Donut derived model:huggingface.coivelin/donut-refexp-combined-v1 · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.Unrecognized feature extractor in ivelin/donut-refexp-combined-v1. Should have a `feature_extractor_type` key in its preprocessor_config.json of config.json, or one of the following `model_type` keys in its config.json: audio-spectrogram-transformer, beit, chinese_clip, clip, clipseg, conditional_detr, convnext, cvt, data2vec-audio, data2vec-vision, deformable_detr, deit, detr, dinat, donut-swin, dpt, flava, glpn, groupvit, hubert, imagegpt, layoutlmv2, layoutlmv3, levit, maskformer, mctct, mobilenet_v1, mobilenet_v2, mobilevit, nat, owlvit, perceiver, poolformer, regnet, resnet, segformer, sew, sew-d, speech_to_text, swin, swinv2, table-transformer, timesformer, unispeech, unispeech-sat, van, videomae, vilt, vit, vit_mae, vit_msn, wav2vec2, wav2vec2-conformer, wavlm, whisper, xclip, yolosHoweverconfig.jsondoes refer todonut-swinfor encodermodel_type. Not sure what the issue is.The model loads and works fine for training and inference. Here is a working Gradio space with links to training and inference notebooks with more details.huggingface.coUI RefExp (by GuardianUI) - a Hugging Face Space by ivelinDiscover amazing ML apps made by the communityScreen Shot 2023-01-23 at 3.59.00 PM1567×1221 128 KBRegards!
2023-01-23T22:35:22Z
hi@ivelin, I’ve duplicated your model and modified thepreprocessor_config.jsonfeature_extractor_typebut it’s still throwing an error. You want to enable the inference on the hub right? Maybe@Narsilcan help?huggingface.copreprocessor_config.json · ivelin/donut-refexp-combined-v1 at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.huggingface.copreprocessor_config.json · naver-clova-ix/donut-base at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2023-01-23T23:19:33Z
Yes, that is correct. I am trying to enable the examples widget and then inference API.Thank you!