Some images are 4 channel

#6
by OllieFox - opened

Some images are 4 channel which means when trying to use as part of a Pytorch data loader we get this error; stack expects each tensor to be equal size, but got [1, 1024, 1024] at entry 0 and [4, 1024, 1024] at entry 4.

I presume a solution to this is to iterate over the dataset and slice?

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment