image-captioning-DLCT icon indicating copy to clipboard operation
image-captioning-DLCT copied to clipboard

IndexError: invalid index to scalar variable

Open zghorbani opened this issue 2 years ago • 1 comments

.... 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?

zghorbani avatar Oct 03 '21 17:10 zghorbani

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

luo3300612 avatar Oct 15 '21 06:10 luo3300612