[Bugfix] Standardize getting number of image patches/tokens (#34358)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -16,9 +16,7 @@ class SmolVLMProcessingInfo(Idefics3ProcessingInfo):
|
||||
def get_hf_processor(self, **kwargs: object) -> SmolVLMProcessor:
|
||||
return self.ctx.get_hf_processor(SmolVLMProcessor, **kwargs)
|
||||
|
||||
def _get_image_token(self, processor: SmolVLMProcessor | None) -> tuple[str, str]:
|
||||
if processor is None:
|
||||
processor = self.get_hf_processor()
|
||||
def _get_image_token(self, processor: SmolVLMProcessor) -> tuple[str, str, str]:
|
||||
image_token = processor.image_token
|
||||
fake_image_token = processor.fake_image_token
|
||||
global_image_token = processor.global_image_token
|
||||
|
||||
Reference in New Issue
Block a user