Skip to content

Commit

Permalink
feat(models): exclude ScienceDirect URLs from screenshot capture in G…
Browse files Browse the repository at this point in the history
…PT4V_MMMU
  • Loading branch information
pufanyi committed Dec 26, 2024
1 parent 06e5157 commit fdc8faf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lmms_eval/models/gpt4v_mmmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ def generate_until(self, requests) -> List[str]:
# Take screenshot of the first 3 webpages

for url_idx, url in enumerate(urls):
if "sciencedirect" in url:
continue

if len(search_image_contents) >= 4:
break

Expand Down

0 comments on commit fdc8faf

Please sign in to comment.