jcjohnson / densecap

Dense image captioning in Torch
MIT License
1.58k stars 430 forks source link

why no 'TemporalCrossEntropyCriterion' #25

Closed lemondan closed 8 years ago

lemondan commented 8 years ago

Hi, I am running your densecap code. But in the DenseCapModel.lua L120, it attempts to call field 'TemporalCrossEntropyCriterion'. But there is no definition about TemporalCrossEntropyCriterion. The errors show that the module TemporalCrossEntropyCriterion is not found. Could you help it?

soumith commented 8 years ago

update your torch-rnn package: luarocks install https://raw.githubusercontent.com/jcjohnson/torch-rnn/master/torch-rnn-scm-1.rockspec