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

render_cy error #159

Open
wangrui5781 opened this issue Aug 27, 2022 · 0 comments
Open

render_cy error #159

wangrui5781 opened this issue Aug 27, 2022 · 0 comments

Comments

@wangrui5781
Copy link

when I add mask in folder used render_cy, sometimes I get error face mask
1_133_add_8
1_150_add_6

but when I rewrite this cython to a python function like
def sim_render_cy(vertices, new_colors, triangles, h, w):
vertices_shape0 = vertices.shape[1]
vis_colors = np.ones((1, vertices_shape0))
face_mask = render_texture(vertices, vis_colors, triangles, h, w, 1)
new_image = render_texture(vertices, new_colors, triangles, h, w, 3)
return face_mask, new_image

This error was resolved but it becomes very slow.

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

1 participant