Transform에 대해 이해해보자
사용자 정의 Dataset, Dataloader, Transforms 작성하기 - PyTorch Tutorials 1.8.1 documentation
Rescale: 이미지의 크기를 조절합니다.(정사각형 모형으로 만들어집니다.)RandomCrop: 이미지를 무작위로 자릅니다. 이것을 data augmentation이라 합니다.(정사각형 모형으로 만들어집니다.)ToTensor: numpy 이미지에서 torch 이미지로 변경합니다. (축변환이 필요합니다)transforms.RandomHorizontalFlip(),
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])

If you read the documentation here, you will see that both parameters are “Sequences for each channel”. Color images have three channels (red, green, blue), therefore you need three parameters to normalize each channel.The first tuple (0.5, 0.5, 0.5) is the mean for all three channels and the second (0.5, 0.5, 0.5) is the standard deviation for all three channels.
왜 mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] 인가?
data_loader에서 num workers를 지정해주는 것
scaler=Gradscaler()란 무엇인가?⇒amp 모듈