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

mask from zbuffer #23

Open
wangxinjun56 opened this issue Sep 6, 2019 · 4 comments
Open

mask from zbuffer #23

wangxinjun56 opened this issue Sep 6, 2019 · 4 comments

Comments

@wangxinjun56
Copy link

tri_map_2d, mask_i = ZBuffer_Rendering_CUDA_op_v2_sz224(vertex2d_i, tri_const, visible_tri_i)

the mask_i is 224*224 , shape is (-1,);

masks.append(mask_i)
masks = tf.stack(masks)

return images, masks

where the mask shape is wrong ,that

G_images_300W_mask = tf.multiply(input_masks_300W, tf.expand_dims(G_images_300W_mask, -1))
G_images_300W = tf.multiply(G_images_300W, G_images_300W_mask) + tf.multiply(input_images_300W, 1 - G_images_300W_mask)

@tranluan
Copy link
Owner

tranluan commented Sep 6, 2019

Can you elaborate on your question?

@wangxinjun56
Copy link
Author

wangxinjun56 commented Sep 7, 2019

the G_images_300W_mask .shape is wrong, should be batchsize * 224 * 224 * 3 that can multiply with input_masks_300W

@tranluan
Copy link
Owner

tranluan commented Sep 7, 2019

The shape is batchsize * 224 * 224 * 1, which is ok for the multiplication.

@linshuheng6
Copy link

@tranluan Hello, could you please tell how to render the generated image with only face part? Or how to obtain the index of those vertices of face which doesn't include the neck and ear? The mask from Z-buffer includes neck, which is not expected. Thank you !

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