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

g_mask.py generated masks are all blank? #88

Open
charliewang789 opened this issue Mar 28, 2021 · 5 comments
Open

g_mask.py generated masks are all blank? #88

charliewang789 opened this issue Mar 28, 2021 · 5 comments

Comments

@charliewang789
Copy link

could you please let me know why the mask files generated are all blank?

@changrannn
Copy link

Hi! I also meet this question, I want to ask if you have solved this problem? Thank you very much!

@greecehalf
Copy link

I met the same issue. Maybe some nuances in the path that you have to modify.

@tien1504
Copy link

Me too, any update on this. I noticed that the CelebAMask-HQ-mask-anno folder just contains few folders (0, 1, 10, 11, 12, 13) while the g_mask requires 0->14 folders. Where are the others?

@tien1504
Copy link

I figured it out. We need to change the folder name 'CelebAMaskHQ-mask-anno' to 'CelebAMask-HQ-mask-anno' in the g_mask.py to match with the folder name in the dataset first.

@SahadevPoudel
Copy link

Anyone facing this problem, can do this simple step:

cv2.imwrite(filename_save, im_base)
TO
cv2.imwrite(filename_save, im_base*255)

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

5 participants