That’s not the point… If I wanted a supervised learning approach that way, I wouldn’t be here asking for help. The point is that I want to apply this, later, to images for which I don’t have access to the actual x and y of the object, or to the background and the object separately. I use these generated images as a training set for different architectures, the fact that I know the real x and y in this case is irrelevant for the purpose of my project or for the purpose of my original question here.