Skip to content

Commit

Permalink
specify eval split for wilds
Browse files Browse the repository at this point in the history
  • Loading branch information
ssagawa committed Sep 21, 2023
1 parent 670a171 commit 85c1a9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion open_flamingo/eval/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@
type=str,
default=".",
)
parser.add_argument(
"--wilds_split",
type=str,
default=".",
)


def eval_dataset(
Expand Down Expand Up @@ -1099,7 +1104,7 @@ def evaluate_classification(
)
test_dataset = WILDSDataset(
dataset_name=dataset_name,
split="test",
split=args.wilds_split,
root_dir=args.wilds_root,
)
prompt_fn = lambda x, test: eval_model.get_camelyon17_prompt(
Expand Down

0 comments on commit 85c1a9e

Please sign in to comment.