You could apply both transformations inside the Dataset.__getitem__
and return both transformed samples to avoid the additional transformation with the for loop in the DataLoader
loop.
1 Like
You could apply both transformations inside the Dataset.__getitem__
and return both transformed samples to avoid the additional transformation with the for loop in the DataLoader
loop.