New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error occur when execute "python3 aster/demo.py #2
Comments
same problem. @doudoubilly dou you have solved this problem? |
@doudoubilly which TF version are you using? I have reproduced this issue on the most recent TF version (r1.10) but fixing it does not seem trivial. Please try TF r1.4 first. |
@bgshih Thanks for applying. |
@ShiyangZhang Not yet. |
dou you have solved this problem? |
@bgshih 我用python3 train.py训练的时候,初始化了15行代码,到从我下载的预训练模型中恢复数据的那一步的时候就卡住了,ctrl+c也关不掉了。如下所示, |
ValueError: too many values to unpack (expected 2) |
It works with tensorflow version 1.4. |
@sukhad-app when i run demo.py ,something wrong : |
I think there is some path issue due to which it is not able to find 'aster/experiments/demo/log'. You can try absolute paths or follow the installation instructions carefully to make it work. Make sure that you did not delete the given directory accidentally. |
Traceback (most recent call last):
File "aster/demo.py", line 92, in
tf.app.run()
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "aster/demo.py", line 55, in main
predictions_dict = model.predict(tf.expand_dims(resized_image_tensor, 0))
File "/home/abc/Projects/aster/meta_architectures/multi_predictors_recognition_model.py", line 51, in predict
predictor_outputs = predictor.predict(feature_maps, scope='{}/Predictor'.format(name))
File "/home/abc/Projects/aster/predictors/attention_predictor.py", line 74, in predict
maximum_iterations=self._max_num_steps
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/contrib/seq2seq/python/ops/decoder.py", line 309, in dynamic_decode
swap_memory=swap_memory)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3202, in while_loop
result = loop_context.BuildLoop(cond, body, loop_vars, shape_invariants)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2940, in BuildLoop
pred, body, original_loop_vars, loop_vars, shape_invariants)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2877, in _BuildLoop
body_result = body(*packed_vars_for_body)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/contrib/seq2seq/python/ops/decoder.py", line 254, in body
decoder_finished) = decoder.step(time, inputs, state)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 490, in step
cell_outputs, next_cell_state = self._cell(inputs, cell_state)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/python/ops/rnn_cell_impl.py", line 191, in call
return super(RNNCell, self).call(inputs, state)
File "/home/abc/Envs/tf-py3/lib/python3.5/site-packages/tensorflow/python/layers/base.py", line 714, in call
outputs = self.call(inputs, *args, **kwargs)
File "/home/abc/Projects/aster/core/sync_attention_wrapper.py", line 54, in call
self._attention_layers[i] if self._attention_layers else None)
ValueError: too many values to unpack (expected 2)
The text was updated successfully, but these errors were encountered: