Hey luke, Thank you very much for sharing your work.
I'm trying to do some experiment with the uploaded pretrained model, to do some inference, But the pre-trained model is just generating a UNK word.
I used this flags
python eval.py --model data/model-best-i84000-score0.314696218186.pth --infos_path data/for_zip/infos_-best.pkl --image_folder data/image
tmp = [data['fc_feats'][np.arange(loader.batch_size) * loader.seq_per_img], data['att_feats'][np.arange(loader.batch_size) * loader.seq_per_img], data['att_masks'][np.arange(loader.batch_size) * loader.seq_per_img] if 'att_masks' in data is not None else None]
Hey luke, Thank you very much for sharing your work.
I'm trying to do some experiment with the uploaded pretrained model, to do some inference, But the pre-trained model is just generating a UNK word.
I used this flags
python eval.py --model data/model-best-i84000-score0.314696218186.pth --infos_path data/for_zip/infos_-best.pkl --image_folder data/image
Also, the eval_utils.py have the same problem with (https://github.com/ruotianluo/self-critical.pytorch/issues/42 with KeyError: 'att_masks' ) I found a solution from this link, would be great to update the file with this modified code https://github.com/ruotianluo/self-critical.pytorch/issues/42
tmp = [data['fc_feats'][np.arange(loader.batch_size) * loader.seq_per_img], data['att_feats'][np.arange(loader.batch_size) * loader.seq_per_img], data['att_masks'][np.arange(loader.batch_size) * loader.seq_per_img] if 'att_masks' in data is not None else None]
Again, Thank you for sharing your work