luo3300612 / image-captioning-DLCT

Official pytorch implementation of paper "Dual-Level Collaborative Transformer for Image Captioning" (AAAI 2021).
BSD 3-Clause "New" or "Revised" License
194 stars 31 forks source link

IndexError: invalid index to scalar variable #16

Open zghorbani opened 3 years ago

zghorbani commented 3 years ago

.... Epoch 0 - evaluation: 100%|##########| 250/250 [07:44<00:00, 1.86s/it] Epoch 0 - evaluation: 100%|##########| 250/250 [07:44<00:00, 1.86s/it] Traceback (most recent call last): File "train.py", line 356, in val_cider = scores['CIDEr'] IndexError: invalid index to scalar variable.

Hello, when I run the code , I get this error. Can you help me?

luo3300612 commented 3 years ago

I have not got this error. What is the output of print(scores) ?