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

Training on custom dataset with custom mask for Inpainting #86

Open
Akshay-Ijantkar opened this issue Mar 22, 2021 · 2 comments
Open

Training on custom dataset with custom mask for Inpainting #86

Akshay-Ijantkar opened this issue Mar 22, 2021 · 2 comments

Comments

@Akshay-Ijantkar
Copy link

Hello @DmitryUlyanov @avolution @cclauss @albarji @hafiz703
Great work on the paper and even the results look amazing!

Can you please guide me with step by step process on how we need to prepare a dataset for a custom image dataset with a custom mask (if possible)?

How the masks will look like in the sense that whether it will be a colour image on which white patches (the part that will be inpainted from the model) is drawn or it will be a completely black image on which white patches (the part that will be inpainted from the model) is drawn? (in short how to prepare mask and then how to supply it for model training)

I referred to your steps but couldn't completely follow them.
Thank you in advance!

@assia855
Copy link

I'm searching also to understand on how can I make it work on my custom dataset. If you get it done. Could you please guide me also.

@CoenHordijk
Copy link

Hello @DmitryUlyanov @avolution @cclauss @albarji @hafiz703 Great work on the paper and even the results look amazing!

Can you please guide me with step by step process on how we need to prepare a dataset for a custom image dataset with a custom mask (if possible)?

How the masks will look like in the sense that whether it will be a colour image on which white patches (the part that will be inpainted from the model) is drawn or it will be a completely black image on which white patches (the part that will be inpainted from the model) is drawn? (in short how to prepare mask and then how to supply it for model training)

I referred to your steps but couldn't completely follow them. Thank you in advance!

Hi, I managed to create a custom mask using The Gimp. I used an existing mask (they reside in data/inpainting) and changed it to my needs. You might be adding the image you want to mask as an extra layer, so you can hide certain areas of interest. Make sure you save the mask in the same bitdepth as the original mask. Save it with a name to your wishes and alter the code so it uses your custom mask.

As you might see from the original maskes they are white on the known area's and black on the unknown/to be inpainted areas.

What I would like to have is a random noise mask which covers a custom percentage of the image, but I think I'll create that one in the code and not with The Gimp.

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

3 participants