This is a port from the SPSR repo, it's going to need a lot of work to be properly integrated but as of this commit it at least runs.
This bad boy is for a workflow where you train a model on disjoint image sets to downsample a "good" set of images like a "bad" set of images looks. You then use that downsampler to generate a training set of paired images for supersampling.