im2latex-tensorflow icon indicating copy to clipboard operation
im2latex-tensorflow copied to clipboard

the weights files not works

Open xiaofengShi opened this issue 7 years ago • 1 comments

I changed the attention.py # out,state = tflib.ops.FreeRunIm2LatexAttention('AttLSTM', ctx, emb_seqs, EMB_DIM, ENC_DIM, DEC_DIM, D, H, W) to out, state = tflib.ops.im2latexAttention('AttLSTM', emb_seqs, ctx, EMB_DIM, ENC_DIM, DEC_DIM, D, H, W) ,the net runs correctly but the weight files has an error NotFoundError (see above for traceback): Key rnn/while/AttLSTM.AttentionCell.Gates/AttLSTM.AttentionCell.Gates.W not found in checkpoint [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

xiaofengShi avatar Mar 30 '18 06:03 xiaofengShi

use predict.py

qianwangn avatar Mar 07 '19 12:03 qianwangn