UOMOP
trainloader image 확인 본문
transf = tr.Compose([tr.ToTensor(), tr.Grayscale(num_output_channels=1) ])
trainset = torchvision.datasets.CIFAR10(root='./data', train=True, download=True, transform=transf) #위에 전처리
trainloader = DataLoader(trainset, batch_size=50, shuffle=True)
for data in trainloader :
input = data[0]
print(type(input))
print(input.shape)
plt.imshow(input[0][0])
break
'Wireless Comm. > Python' 카테고리의 다른 글
send img with contour : 20230603 (0) | 2023.06.03 |
---|---|
send img with contour (0) | 2023.06.02 |
New : add noise to image using Norm2 (0) | 2023.05.30 |
Is the high frequency component more robust to noise? (MSE Ver.) (0) | 2023.05.24 |
Is the high frequency component more robust to noise? (PSNR Ver.) (0) | 2023.05.24 |
Comments