Skip to content

functional/soft_rasterize.py bug: lagacy branch #101

@SeVEnMY

Description

@SeVEnMY

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions