AttributeError: 'MiniCPMVTokenizerFast' object has no attribute 'image_processor'
After using model for a few days, got this error and can not find any solution around the web. Does anybody solved this thing?
I am facing a similar issue in my spaces.
Since the repository is private, you'd better define processor and pass it to chat function by yourself. Otherwise, it will call
self.processor = AutoProcessor.from_pretrained(self.config._name_or_path, trust_remote_code=True)
And get nothing without valid token.
+1
initiating processor by yourself, with TOKEN - token to huggingfacehub:
processor = AutoProcessor.from_pretrained('openbmb/MiniCPM-V-2_6', trust_remote_code=True, token=TOKEN)
and passing it later in the chat:
res = model.chat(
image=None,
msgs=msgs,
tokenizer=tokenizer,
processor=processor,
)
did the job. :)
+1
initiating processor by yourself, with TOKEN - token to huggingfacehub:
processor = AutoProcessor.from_pretrained('openbmb/MiniCPM-V-2_6', trust_remote_code=True, token=TOKEN)
and passing it later in the chat:
res = model.chat( image=None, msgs=msgs, tokenizer=tokenizer, processor=processor, )
did the job. :)
Thank you, for me worked logging in using hf cli login command.
This also worked, thanks.