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

on Pytorch==1.4.0

Open Codelessrp opened this issue 5 years ago • 2 comments

I am trying to run this project on Pytorch==1.4.0, torchvision==0.5.0

Before training, I had done some changes in train.py: scores, _ = pack_padded_sequence(scores, decode_lengths, batch_first=True) targets, _ = pack_padded_sequence(targets, decode_lengths, batch_first=True) to: scores = pack_padded_sequence(scores, decode_lengths, batch_first=True) targets = pack_padded_sequence(targets, decode_lengths, batch_first=True) scores=scores.data targets=targets.data

But when I run caption.py, the output is always ['<start>', 'a', 'white', 'bird', 'in', 'the', 'air', '<end>']. why?

Codelessrp avatar Aug 12 '20 07:08 Codelessrp

Have you solved this problem? I'm having the same issue

rongtongxueya avatar Apr 22 '23 14:04 rongtongxueya

Have you solved this problem? I'm having the same issue

This error may be caused by improper preprocessing.

senli1073 avatar Apr 23 '23 06:04 senli1073