Hyperparameter tuning in torchdistill #381
Unanswered
nighting0le01
asked this question in
Q&A
Replies: 1 comment
-
You can use Subset class in torchvision and register the class or function to instantiate so that you can define it (as from torch.utils.data import ImageFolder, Subset
from torchdistill.datasets.registry import register_dataset
@register_dataset
def imagenet_subset(indices, **image_folder_kwargs):
org_dataset = ImageFolder(**image_folder_kwargs)
sub_dataset = Subset(org_dataset, indices)
return sub_dataset Another option is randomly splitting your dataset like this (dummy_train:dummy_val = 9:1) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
question 1 : Hi @yoshitomo-matsubara how can I specify to using only a small subset of imagenet train for hyperparameter tuning ? I have the dataset locally downloaded. Can i specify it through yaml?
Beta Was this translation helpful? Give feedback.
All reactions