InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

【question】TypeError: InternVLChatModel.forward() missing 1 required positional argument: 'pixel_values'

Open ererdewubudesi opened this issue 1 year ago • 1 comments

请问如果想用模型做纯文本推理,应该怎么写呢?outputs = self.model(**inputs, output_hidden_states=True, return_dict=True),现在这样会TypeError: InternVLChatModel.forward() missing 1 required positional argument: 'pixel_values',如果加上pixel_values=None,会有image_flags = image_flags.squeeze(-1) AttributeError: 'NoneType' object has no attribute 'squeeze'

ererdewubudesi avatar Sep 21 '24 05:09 ererdewubudesi

Please refer to the examples provided in code for more details.

qishisuren123 avatar Sep 21 '24 08:09 qishisuren123