I decide to sync up this repo and self-critical.pytorch. (The old master is in old master branch for archive)
1.43k
stars
409
forks
source link
UnboundLocalError: local variable 'gt_indices' referenced before assignment #196
Closed
shirly2cc closed 6 months ago
Traceback (most recent call last): File "/workspace/code/self-critical.pytorch-2/tools/train.py", line 299, in
train(opt)
File "/workspace/code/self-critical.pytorch-2/tools/train.py", line 252, in train
val_loss, predictions, lang_stats = eval_utils.eval_split(
File "/workspace/code/self-critical.pytorch-master/captioning/utils/eval_utils.py", line 157, in eval_split
tmp = [data['fc_feats'], data['att_feats'], data['labels'], data['masks'], data['att_masks'], data['gts'], data[gt_indices],
UnboundLocalError: local variable 'gt_indices' referenced before assignment