[Bugfix] Missing thumbnail from NVLM-D processor (#14633)

Signed-off-by: ameyanjarlekar <aanjarlekar@nvidia.com>
This commit is contained in:
ameyanjarlekar 2025-03-12 08:50:49 -07:00 committed by GitHub
parent c0c25e25fa
commit 4a754fcf15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ class NVLMProcessor(BaseInternVLProcessor):
raise NotImplementedError("Embedding inputs are not supported")
tile_pos_identifiers = [f"<tile_{i}>" for i in range(1, num_patches)]
if self.use_thumbnail and num_patches != 1:
if self.use_thumbnail:
tile_pos_identifiers += ["<tile_global_thumbnail>"]
context_size = feature_size // num_patches