728x90 DataAugmentation1 Data Augmentation Data Augmentation (데이터에 인위적 변화를 주는 것) Data Augmentation을 하는 이유 우리는 항상 깔끔한 데이터만을 얻을 수 없다. 어느 데이터는 중앙에 있지 않고 어떤 데이터는 작고 어떤 데이터는 흐릿하다. 따라서 조금 더 어려운(?) 데이터로 훈련을 시키면 어떨까? 실험을 했는데 결과는 더 좋게 나오면서 여러 DataAugmentation이 활성화 되었다. torchvision.transforms Image에 다양한 함수를 적용할 수 있다. 예시 CODE from torchvision import transforms data_aug = transforms.compose([transforms.RandomCrop((224,224)), transforms.ToTensor()]) .. 2021. 8. 27. 이전 1 다음 728x90