Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions vlmeval/dataset/vladbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ class VLADBench(ImageBaseDataset):
}
DATASET_MD5 = {"VLADBench": "53c01aa8f9afe2d084728fc8eb21caea"}

IMAGE_DIR = None # e.g., your_localdir/VLADBench/
"""
Resolve VLADBench image directory.
Priority:
Expand All @@ -548,8 +547,12 @@ class VLADBench(ImageBaseDataset):
"""

def __init__(self, *args, **kwargs):
if self.IMAGE_DIR is None:
self.IMAGE_DIR = get_vladbench_image_dir(self.IMAGE_DIR)
local_dir = None # your_localdir/VLADBench/
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The local_dir variable should be a parameter; otherwise, users have to change the source code to assign the variable.

if local_dir is None:
self.IMAGE_DIR = get_vladbench_image_dir(None)
else:
self.IMAGE_DIR = local_dir

super().__init__(*args, **kwargs)

def build_prompt(self, line: Union[int, pd.Series]) -> List[Dict[str, str]]:
Expand Down
Loading