Skip to content

Should we pass dataset transformations to the pytorch dataset or to the nc_benchmark function ? #696

Answered by lrzpellegrini
AlbinSou asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Albin,
the recommended way is to pass transformations to nc_benchmark. You can also apply them to datasets and call nc_benchamark without them, but in this way you won't be able to access eval transformations from the training set and vice-versa. For instance, by passing transformations to nc_benchamark you can do something like:

train_dataset_without_augmentation = train_experience.dataset.eval()

test_dataset_with_augmentation = eval_experience.dataset.train()

I know that those features are not properly documented, we are working on aligning the documentation with the actual state of the framework.

One thing you shouldn't do is to apply transformations to the datasets and also pass …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlbinSou
Comment options

AlbinSou Jul 14, 2021
Maintainer Author

Answer selected by AlbinSou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants