daniilidis-group / neural_renderer

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

ValueError: not enough values to unpack (expected 3, got 1) #120

Open Mayur28 opened 2 years ago

Mayur28 commented 2 years ago

Hi,

I have installed from source and I am trying to run the example, but I am encountering an error when trying to unpack values returned from the renderer:

ValueError: not enough values to unpack (expected 3, got 1)

I am trying to get this to work on Windows 10 Pro.

Traceback:

Installed c:\users\XXXX\appdata\local\programs\python\python36\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.6-win-amd64.egg
Processing dependencies for neural-renderer-pytorch==1.1.3
Finished processing dependencies for neural-renderer-pytorch==1.1.3

D:\XXXX\Downloads\neural_renderer-master\neural_renderer-master>cd examples

D:\XXXX\Downloads\neural_renderer-master\neural_renderer-master\examples>python example1.py
Drawing:   0%|                                                                                                                                                                               | 0/90 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "example1.py", line 55, in <module>
    main()
  File "example1.py", line 49, in main
    images, _, _ = renderer(vertices, faces, textures)  # [batch_size, RGB, image_size, image_size]
ValueError: not enough values to unpack (expected 3, got 1)

Any help would be highly appreciated. Thanks

Azusa306 commented 2 years ago

do you solve this problem? Traceback (most recent call last): File "./examples/example1.py", line 55, in <module> main() File "./examples/example1.py", line 49, in main images, _, _ = renderer(vertices, faces, textures) # [batch_size, RGB, image_size, image_size] ValueError: not enough values to unpack (expected 3, got 2)

Mayur28 commented 2 years ago

Hi @Azusa306,

I can't remember what exactly I did to resolve the problem as it was a while back, but if I remember correctly, I resolved the issue by building from source, and I had to change a few lines in the code to get it to work. Can't remember the exact details - Apologies.

Azusa306 commented 2 years ago

Thanks.I have resolved it. Just delete one '_' after the image.