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

Color Training #5

Closed
pirate-zhang opened this issue May 17, 2021 · 2 comments
Closed

Color Training #5

pirate-zhang opened this issue May 17, 2021 · 2 comments

Comments

@pirate-zhang
Copy link

When i try to train the Color Branch,there is a error occurred.Could you give me a suggestion when you have time.
The error message is as follows:
Traceback (most recent call last):
File "create_beautygan_uv.py", line 51, in
uv_texture, uv_seg = generator.get_texture(image, seg)
File "/data/run01/scv0004/CPM-main/Color/texture_generator.py", line 23, in get_texture
pos[:, :, :2].astype(np.float32),
TypeError: 'NoneType' object is not subscriptable
image

@thaoshibe
Copy link
Collaborator

thaoshibe commented May 18, 2021

Hello there, I guess there's something wrong with that image.
Could you change the line here to this:

try:
	uv_texture, uv_seg = generator.get_texture(image, seg)
except:
	print('Something wrong with: ', list_imgs[i])

And we'll look at that image later.
I've faced that issues before, it turned out that there's no faces in the images; Or dlib couldn't detect any faces.

@thaoshibe
Copy link
Collaborator

Hi again,
If there's something wrong with the images (no face, degraded, corrupted images, etc.), then I can't help.
Else, dlib couldn't detect any faces (very few cases)
Please handle these images by passing face's bounding boxes manually (Find more information here)

I'm closing this issue and hope you can run the code smoothly!

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