GouravWadhwa / Hypergraphs-Image-Inpainting

(WACV 2021) Hyperrealistic Image Inpainting with Hypergraphs
90 stars 15 forks source link

Can I use my own mask? #10

Closed Royalvice closed 3 years ago

Royalvice commented 3 years ago

I want to know whether i can use my own random mask for testing? Thanks

alexmi256 commented 3 years ago

This isn't possible currently. I've added a extra random mask types in https://github.com/alexmi256/Hypergraphs-Image-Inpainting and this was next on my todo list at https://github.com/alexmi256/Hypergraphs-Image-Inpainting/pull/5/files but I'm not that familiar with tensorflow and have not had much time to try out how to pair up the image and image mask

GouravWadhwa commented 3 years ago

So I have added this feature. Now you can test with your own mask using generate_mask option in test_options.py. The only thing is you have to list all the images in a file with the name of image and the mask in the following format Image1.jpg Mask1.png Image2.jpg Mask2.png ...

Give --generate_mask 0 and provide the path to test_file and you can test on your own mask. Hope this helps Please let me know if there is still any issue

Royalvice commented 3 years ago

thanks, it helps a lot!!!

zhangshilong2000 commented 7 months ago

谢谢,它有很大帮助!!

你好,这个怎么设置使用自己的掩码?