imgi:the input image to be processed
refi:the reference image to be compared to
imgo:a random tile of the input image
refo:the corresponding tile of the reference image
noiseab:the generated noise profile values to pass on to training
