knazeri / edge-connect

EdgeConnect: Structure Guided Image Inpainting using Edge Prediction, ICCV 2019 https://arxiv.org/abs/1901.00212
http://openaccess.thecvf.com/content_ICCVW_2019/html/AIM/Nazeri_EdgeConnect_Structure_Guided_Image_Inpainting_using_Edge_Prediction_ICCVW_2019_paper.html
Other
2.5k stars 528 forks source link

Value problem #158

Open weizitai opened 4 years ago

weizitai commented 4 years ago

I have a question. When we use 'imread' to read a picture, the black part will be displayed as 0 and the white part will be displayed as 255. But our damaged area is represented in black in the mask picture, and converted to a value is 0. According to this calculation, there is a problem, for example: outputs = outputs masks + edges (1-masks). This is not a picture with the repaired part + the original picture as the damaged part. I wonder if you understand my question? I hope I have time to answer my questions, thank you~