Sliding window of a batch in Tensorflow using Dataset API
问题 Is there a way to modify the composition of my images within a batch? At the moment, when I'm creating e.g. a batch with the size of 4, my batches will look like that: Batch1: [Img0 Img1 Img2 Img3] Batch2: [Img4 Img5 Img6 Img7] I need to modify the composition of my batches so that it will only shift once to the next image. Then it should look like that: Batch1: [Img0 Img1 Img2 Img3] Batch2: [Img1 Img2 Img3 Img4] Batch3: [Img2 Img3 Img4 Img5] Batch4: [Img3 Img4 Img5 Img6] Batch5: [Img4 Img5