How to generate a sentence from feature vector or words?

筅森魡賤 提交于 2019-12-22 06:38:42

问题


I used VGG 16-Layer Caffe model for image captions and I have several captions per image. Now, I want to generate a sentence from those captions (words).
I read in a paper on LSTM that I should remove the SoftMax layer from the training network and provide the 4096 feature vector from fc7 layer directly to LSTM.
I am new to LSTM and RNN stuff.
Where should I begin? Is there any tutorial showing how to generate sentence by sequence labeling?


回答1:


AFAIK the master branch of BVLC/caffe does not yet support a recurrent layer architecture.

You should pull branch recurrent from jeffdonahue/caffe. This branch supports RNN and LSTM.
It also contains a detailed example on how to generate image captions trained using MS COCO data.



来源:https://stackoverflow.com/questions/34494796/how-to-generate-a-sentence-from-feature-vector-or-words

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!