I think for image reconstruction you could use e.g. nn.MSELoss or nn.BCEWithLogitsLoss, assuming your target contains floating point values in a specific range.
I don’t know what the state of the art would be today for this use case.