Skip to content

Commit 9be0c84

Browse files
committed
Change set -> dict w/ None keys for dataset split synonym search, so always consistent if more than 1 exists. Fix #1224
1 parent 4670d37 commit 9be0c84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timm/data/dataset_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
kmnist=KMNIST,
2727
fashion_mnist=FashionMNIST,
2828
)
29-
_TRAIN_SYNONYM = {'train', 'training'}
30-
_EVAL_SYNONYM = {'val', 'valid', 'validation', 'eval', 'evaluation'}
29+
_TRAIN_SYNONYM = dict(train=None, training=None)
30+
_EVAL_SYNONYM = dict(val=None, valid=None, validation=None, eval=None, evaluation=None)
3131

3232

3333
def _search_split(root, split):

0 commit comments

Comments
 (0)