Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi committed Mar 31, 2024
1 parent 3e2b24f commit 7b4b4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmms_eval/models/llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _collate(x):
task = task[0]
split = split[0]
# batched_visuals = [doc_to_visual[0](self.task_dict[task][split][ids]) for ids in doc_id] # [B, N]
contexts_texts, batched_visuals = zip(*[context.get_text(image_tokens=DEFAULT_IMAGE_TOKEN ,lazy=False) for context in contexts]) # [B, N]
contexts_texts, batched_visuals = zip(*[context.get_text(image_tokens=DEFAULT_IMAGE_TOKEN, lazy=False) for context in contexts]) # [B, N]
flattened_visuals = self.flatten(batched_visuals) # [B*N]
# batched_visuals = context.get_visions() # [B, N]
# flattened_visuals = contexts[0].get_visions() # [B*N]
Expand Down

0 comments on commit 7b4b4fa

Please sign in to comment.