Skip to content

Commit 7fe356a

Browse files
author
Dbhasin1
committed
map split names in dataset mock
1 parent 3813fb6 commit 7fe356a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/builtin_dataset_mocks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,12 @@ def celeba(info, root, config):
880880

881881
@register_mock
882882
def country211(info, root, config):
883-
split_folder = pathlib.Path(root, "country211", config["split"])
883+
split_name_mapper = {
884+
"train": "train",
885+
"val": "valid",
886+
"test": "test",
887+
}
888+
split_folder = pathlib.Path(root, "country211", split_name_mapper[config["split"]])
884889
split_folder.mkdir(parents=True, exist_ok=True)
885890

886891
num_examples = {

0 commit comments

Comments
 (0)