a-PyTorch-Tutorial-to-Image-Captioning icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Image-Captioning copied to clipboard

Too many values to unpack

Open Shanks0465 opened this issue 5 years ago • 2 comments

Traceback (most recent call last): File "train.py", line 329, in main() File "train.py", line 116, in main epoch=epoch) File "train.py", line 161, in train for i, (imgs, caps, caplens) in enumerate(train_loader): ValueError: too many values to unpack (expected 3)

Using Pytorch 1.2.0

Shanks0465 avatar May 12 '20 19:05 Shanks0465

This has already been addressed. Please see #86

kmario23 avatar May 14 '20 15:05 kmario23

Traceback (most recent call last): File "train.py", line 329, in main() File "train.py", line 116, in main epoch=epoch) File "train.py", line 161, in train for i, (imgs, caps, caplens) in enumerate(train_loader): ValueError: too many values to unpack (expected 3)

Using Pytorch 1.2.0

Hey, I also met this problem. Have you found the solution?

NearStart avatar Sep 07 '21 14:09 NearStart