Skip to content

Commit

Permalink
Merge pull request #43 from Lotayou/master
Browse files Browse the repository at this point in the history
Fix a bug when saving textured mesh to .obj file.
  • Loading branch information
nkolot authored May 22, 2019
2 parents 5c7ff4f + de1d612 commit ae2de34
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion neural_renderer/save_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def create_texture_image(textures, texture_size_out=16):
vertices = vertices.cuda()
textures = textures.cuda()
image = create_texture_image_cuda.create_texture_image(vertices, textures, image, 1e-5)
image = torch.ones_like(image)

vertices[:, :, 0] /= (image.shape[1] - 1)
vertices[:, :, 1] /= (image.shape[0] - 1)
Expand Down

0 comments on commit ae2de34

Please sign in to comment.