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

The render image has no grad #1879

Open
yejr0229 opened this issue Sep 27, 2024 · 1 comment
Open

The render image has no grad #1879

yejr0229 opened this issue Sep 27, 2024 · 1 comment

Comments

@yejr0229
Copy link

yejr0229 commented Sep 27, 2024

I use the following code to render a mesh from one view:

    mesh.textures = TexturesUV(
                maps=init_texture.unsqueeze(0).to(device),   # / 255
                faces_uvs=faces.textures_idx[None, ...],
                verts_uvs=verts_uvs[None, ...])
    renderer = init_renderer(cameras,
        shader=init_soft_phong_shader(
            camera=cameras,
            blend_params=BlendParams(),
            device=device),
        image_size=image_size*2, 
        faces_per_pixel=faces_per_pixel
    )
    images, fragments = renderer(mesh)

And the images.requires_grad=False, how should I deal with it?

@bottler
Copy link
Contributor

bottler commented Sep 29, 2024

Which inputs here require grad? You might need to share more code.

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

2 participants