-
Notifications
You must be signed in to change notification settings - Fork 124
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
Comments
Can you elaborate on your question? |
the G_images_300W_mask .shape is wrong, should be batchsize * 224 * 224 * 3 that can multiply with input_masks_300W |
The shape is batchsize * 224 * 224 * 1, which is ok for the multiplication. |
@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 ! |
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)
The text was updated successfully, but these errors were encountered: