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

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

Open
Mayur28 opened this issue Jan 14, 2022 · 3 comments
Open

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

Mayur28 opened this issue Jan 14, 2022 · 3 comments

Comments

@Mayur28
Copy link

Mayur28 commented Jan 14, 2022

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
Copy link

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
Copy link
Author

Mayur28 commented Mar 29, 2022

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
Copy link

Azusa306 commented Apr 3, 2022

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

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