mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
remove download argument from torch_kwargs
This commit is contained in:
parent
59e59ff040
commit
81900a6bae
@ -144,6 +144,7 @@ def create_dataset(
|
||||
use_train = split in _TRAIN_SYNONYM
|
||||
ds = QMNIST(train=use_train, **torch_kwargs)
|
||||
elif name == 'imagenet':
|
||||
torch_kwargs.pop('download')
|
||||
assert has_imagenet, 'Please update to a newer PyTorch and torchvision for ImageNet dataset.'
|
||||
if split in _EVAL_SYNONYM:
|
||||
split = 'val'
|
||||
|
Loading…
x
Reference in New Issue
Block a user