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

A question about training the FPN #45

Closed
JimjimChen opened this issue Nov 26, 2021 · 3 comments
Closed

A question about training the FPN #45

JimjimChen opened this issue Nov 26, 2021 · 3 comments

Comments

@JimjimChen
Copy link

JimjimChen commented Nov 26, 2021

微信图片_20211126162849
微信图片_20211126162941

First of all, thank you very much for your work. I met the above problem when I trained FPN. Do you know how to solve it? Looking forward to your reply.

@chaofengc
Copy link
Owner

It seems that your data is incorrect. Please follow readme and generate the correct data.

Download CelebAHQ-Mask dataset. Generate CelebAMask-HQ-mask and CelebAMask-HQ-mask-color with the provided scripts in CelebAMask-HQ/face_parsing/Data_preprocessing/.

After that, put the folder CelebAMask-HQ-mask and CelebAMask-HQ-mask-color under ../datasets/CelebAMask-HQ

@JimjimChen
Copy link
Author

JimjimChen commented Nov 28, 2021

It seems that your data is incorrect. Please follow readme and generate the correct data.

Download CelebAHQ-Mask dataset. Generate CelebAMask-HQ-mask and CelebAMask-HQ-mask-color with the provided scripts in CelebAMask-HQ/face_parsing/Data_preprocessing/.

After that, put the folder CelebAMask-HQ-mask and CelebAMask-HQ-mask-color under ../datasets/CelebAMask-HQ

Many thanks!I have another question: when I finished generating 'CelebAMask-HQ-mask' , is the next step to run 'g_color.py’ directly?
When I run 'g_color.py' , I met a error : NameError : name 'im_base' is not defined. Do you know how to fix it?
微信图片_20211128104100

@chaofengc
Copy link
Owner

Actually, training FPN does not need the colored mask. Please refer to the code:

self.img_dataset = sorted(make_dataset(os.path.join(opt.dataroot, 'CelebA-HQ-img')))
self.mask_dataset = sorted(make_dataset(os.path.join(opt.dataroot, 'CelebAMask-HQ-mask')))

You may simply put the generated mask folder CelebAMask-HQ-mask and corresponding image folder CelebA-HQ-img under the dataroot.

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