Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Inapinting for Non Center Region #30

Open
yannadani opened this issue Dec 19, 2017 · 1 comment
Open

Handling Inapinting for Non Center Region #30

yannadani opened this issue Dec 19, 2017 · 1 comment

Comments

@yannadani
Copy link

Hey!

Thanks for the code. I was trying to play around with this and had a query. I wanted to know how to inpaint images when the region of interest is not a square at the centre of the image but something which is quite arbitrary. For example, patch inpainting a detected object or a person in any part of image (espcially non center ones). Is there a way to do it here?

Thanks !

@leehomyc
Copy link
Owner

Hi, you can crop or pad the image such that the person is in the center. If the shape is not a square, you can use a bounding box that contains the shape (for the content network it requires the hole to be the center of the image). After that, you can apply the texture network (which is essentially style transfer) where the hole can be any shape or location. You just need to use the output of the content network as content (maybe only keep whatever is inside the original hole) and use the rest of the image as style. Our website has an example of removing and inpainting a person:
http://www.harryyang.org/inpainting/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants