PaintByExample different version

Need to implement the PaintByExample different version,

just inpaint input image and reference image based on mask, instead of feature extractions from reference image, just replace and applying on output…

Any help on this