yaoli / arctic-capgen-vid

automatic video description generation with GPU training
Other
260 stars 91 forks source link

tensorflow branch: model_attention_tf.py #18

Open ghost opened 7 years ago

ghost commented 7 years ago

Dear @yaoli, I am trying to implement the tensorflow version. While doing so, I am getting the following error in after typing the command 'python train_model.py' Since I want to run it using tensorflow I modified the train command you have mentioned in the readme file. Does the file need any cleaning up? Its is missing Class Attention.

Also, the initial lines when running the code indicate that Theano is still being used. How come? I did edit the config.py file to select tensorflow ('run_with': 'tensorflow').

Thanks!

image

siyilingting commented 7 years ago

Hi, @nsbendre , I am trying to implement the LSTM used in this paper with tensorflow, It takes current word vector 'xt' and soft-attention vector 'φt' as inputs of LSTM . However, LSTM function in tensorflow only takes 'xt' as it's input, which results my standstill. Could you please tell me how to feed two inputs into LSTM in tensorflow?