I have kind of the same problem but I’m trying to call to_pil_image on a tensor that consists of sequences of grayscale images. [seq_len, width, height]. How can I call this function on all images? Because now it thinks that my image has 10 (10-seq_len) channels.