RenYurui / StructureFlow

Code for paper "StructureFlow: Image Inpainting via Structure-aware Appearance Flow"
Other
222 stars 42 forks source link

the metric computation #14

Closed weizequan closed 4 years ago

weizequan commented 4 years ago

Hi Yurui,

In your scripts/metrics.py, i guess the "inputs" in "call(self, inputs, gts)" (used for computing the 'ssim', 'psnr', 'l1', etc) are the direct outputs of your network? not the merged version, i.e., outputs masks + inputs (1 - masks) [just change the hole regions]? Thanks a lot.

RenYurui commented 4 years ago

The input image is the merged results [ input = (outputs maps) + (gts (1 - maps)) ] see Function test() in structure_flow.py for detail.