1. Learn
  2. /
  3. Courses
  4. /
  5. Deep Learning for Images with PyTorch

Connected

Exercise

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?

Instructions

50 XP

Possible answers