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: too many values to unpack (expected 3) #66

Open
psuu0001 opened this issue Feb 22, 2021 · 1 comment
Open

ValueError: too many values to unpack (expected 3) #66

psuu0001 opened this issue Feb 22, 2021 · 1 comment

Comments

@psuu0001
Copy link

error:
batch_size, l, d = x.size()
ValueError: too many values to unpack (expected 3)

x is the input image.

when I tried to train the model, the error came up. It seems that the size of input image in lmdb format has one more dimension after encoder. The lmdb input image size after encoder is[ 12, 3, 64, 256]
However, when I run the demo.py, the input size after encoder is [1, 25, 512], which is acceptable.
I do not know why there is difference between training and prediction.

@jun214384468
Copy link

error:
batch_size, l, d = x.size()
ValueError: too many values to unpack (expected 3)

x is the input image.

when I tried to train the model, the error came up. It seems that the size of input image in lmdb format has one more dimension after encoder. The lmdb input image size after encoder is[ 12, 3, 64, 256]
However, when I run the demo.py, the input size after encoder is [1, 25, 512], which is acceptable.
I do not know why there is difference between training and prediction.

请问这个问题你解决了吗?

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