How to apply aug_transforms to validation set while training

Hey, I know the answer is a bit older. But maybe someone reads this way later as I did.

For me that didn’t work, because set_split_idx returns a contextlib._GeneratorContextManager object.

But with dls[1].dataset.set_split_idx(0): dls[1].show_batch() should work then.

2 Likes