Closed hyunseokmin closed 9 years ago
Strange, this works for me. How did you obtain your model? Did you just use the default parameters in the train function in capgen.py
?
Yes. I used the default parameters in the train function in capgen.py.
it is more detail error description.
MissingInputError: A variable that is an input to the graph was neither provided as an input to the function nor given a value. A chain of variables leading from this input to an output is [<TensorType(float32, matrix)>, dot.0, DimShuffle{0,x,1}.0, Subtensor{::, ::, ::}.0, Elemwise{add,no_inplace}.0, Elemwise{tanh,no_inplace}.0, DimShuffle{0,1,2}.0, Reshape{2}.0, dot.0, Reshape{3}.0, Elemwise{add,no_inplace}.0, Reshape{2}.0, Elemwise{mul,no_inplace}.0, Softmax.0, Subtensor{::, int64}.0, Shape.0, Elemwise{Cast{int32}}.0, mrg_uniform{TensorType(float32, vector),no_inplace}.0]. This chain may not be unique Backtrace when the variable is created: File "capgen.py", line 511, in lstm_cond_layer n_steps=nsteps, profile=False)
I was able to reproduce the bug. Thanks for helping me find it. I'll push a fix soon.
I just pushed a fix, let me know if it solves your problem.
Thanks. It works. ^^:
Hello, thank you for sharing.
I tried to generate caption for my image. To that end, I follows your code. I made a model file with capgen.train function (using Flickr8k data and default parameters).
Based on the model, I tried to generate a caption. However, I meet an error. The error is ...
MissingInputError Traceback (most recent call last)