RGB, grayscale, or alpha?
Your team obtained a new image dataset for training. Before designing a model, you want to check if the images are RGB, grayscale, or with a transparency alpha channel. Assuming all the images in the dataset are the same, you only need to check one sample image.
The torchvision.transforms.functional module has been imported as F. The sample image to check has been loaded as image.
What kind of images does the dataset consist of?
Deze oefening maakt deel uit van de cursus
Deep Learning for Images with PyTorch
Praktische interactieve oefening
Zet theorie om in actie met een van onze interactieve oefeningen.
Begin met trainen