KumapowerLIU / Rethinking-Inpainting-MEDFE

Rethinking Image Inpainting via a Mutual Encoder Decoder with Feature Equalizations. ECCV 2020 Oral
Other
371 stars 50 forks source link

Queries about the test output #33

Open SayedNadim opened 2 years ago

SayedNadim commented 2 years ago

Hi, thanks for the good work. Can you please check whether this output is expected? output: output_407 input: 4 mask: mask_21

The only change I made was the following code in the test script.

.....
mask = mask_transform(mask)
detail = img_transform(detail)
structure = img_transform(structure)
mask = torch.unsqueeze(mask, 0)
detail = torch.unsqueeze(detail, 0)
structure = torch.unsqueeze(structure, 0)

detail = detail * (1 - mask) # masking the details
structure = structure * (1 - mask) # masking the structure
......

Thanks!

camellia120 commented 2 years ago

I am very glad to hear from you.Thank you very much!