Open yejr0229 opened 1 month ago
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?
Which inputs here require grad? You might need to share more code.
I use the following code to render a mesh from one view:
And the images.requires_grad=False, how should I deal with it?