Local And Adaptive Image-To-Image Learning And Inference