Data Augmentation in PyTorch

后端 未结 3 615
太阳男子
太阳男子 2020-12-07 20:20

I am a little bit confused about the data augmentation performed in PyTorch. Now, as far as I know, when we are performing data augmentation, we are KEEPING our original dat

3条回答
  •  伪装坚强ぢ
    2020-12-07 21:08

    Yes the dataset size does not change after the transformations. Every Image is passed to the transformation and returned, thus the size remaining the same.

    If you wish to use the original dataset with transformed one concat them.

    e.g increased_dataset = torch.utils.data.ConcatDataset([transformed_dataset,original])

提交回复
热议问题