Hello,
can I get both RGB and grayscale image simultaneously in a image dataloader?
Just like blow:
for step, (rgb, gray) in enumerate(dataloader)

Or is there a way to convert rgb images into grayscale within each batch?
for step, (imgs, labels) in enumerate(dataloader):
    grayscale = ANY_FUNCTION(imgs).to(device)
    rgb = imgs.to(device)

I need both RGB and grayscale images in each mini-batch.