-
Notifications
You must be signed in to change notification settings - Fork 156
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
functional/soft_rasterize.py bug: lagacy branch #101
Comments
Hi, I met the same problem: RuntimeError: faces must be contiguous I try your method but it didn't work, do you fix it? |
Did you also change the line for textures(42)? |
No, just follow your method to change line41 in soft_rasterize.py |
Try to modify line 42 using the same method as well. |
Wow, solved! Thank you! |
When running the function:
faces_info, aggrs_info, soft_colors = \ soft_rasterize_cuda.forward_soft_rasterize(face_vertices, textures, faces_info, aggrs_info, soft_colors, image_size, near, far, eps, sigma_val, ctx.func_dist_type, ctx.dist_eps, gamma_val, ctx.func_rgb_type, ctx.func_alpha_type, ctx.texture_type, fill_back)
Got the error message:
faces must be contiguous
temporarily solved by changing line 41:
face_vertices = face_vertices.clone()
to:
face_vertices = face_vertices.clone().contiguous()
The text was updated successfully, but these errors were encountered: