Got the issue. There was one sample which had (0,250,250) dimensions. Don’t know why it wasn’t captured when I tried printing unique dims for all data.
Anyways, thank you for the guidance. I really appreciate it.
PS: I had to turn num_workers=0 in DataLoader to get better understanding since it made the processing serial.
Thanks again.