I have a folder full of input and target pairs of photos.
As you can tell, 1.jpg and 2.jpg were taken right after the other. So they are together a pair.
What should I write as the function of “get_x” and “get_y”?
Is it correct to say that you inputs will always end in an odd number and the targets even? Or this might change along the way?
Not necessarliy, but for sure there will be a difference of ‘1’ between them.
if X.jpg is the input, then the (X+1).jpg will be the target.
Could be stuff like: 1.jpg + 2.jpg (input + target), but could also be 543.jpg + 544.jpg (input + target).
The thing is, I’m going to take a whole load of photos right after the other, and they will be kept in the memory in ascending order…
If your first image is always an input image so I imagine sth like this:
images = [1,2,3,4,5,7,8,10,11]
inputs = images[0::2]
targets = images[1::2]
([1, 3, 5, 8, 11], [2, 4, 7, 10])