daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.14k stars 254 forks source link

Creating texture image in sav_obj.py #66

Open aniketpokale10 opened 5 years ago

aniketpokale10 commented 5 years ago

I have been trying to save the model to an object file. In the save_obj.py function, it calls the create_texture_image() function in which create_texture_image_cuda.create_texture_image() function gives me the images. The values in the image are out of the range of [-1,1] which is expected in the imsave() function in save_obj(). If i just clamp the values which are out of range to [-1,1], I get this image, example3_result

When I transfer this texture to the 3D model in example4, it doesn't give me the expected output.

HugoNTL commented 3 years ago

Hi @aniketpokale10, I am facing the same issue here. Do you have the solution for this? Many thanks!

logicsh commented 2 years ago

This need to be normalized.

logicsh commented 2 years ago

How do you use create_texture_image() function? When I use this function I have this problem#119 RuntimeError: CUDA error: an illegal memory access was encountered