Traceback (most recent call last):


 "withOpenCV.py", line 89, in <module>

show_labels_on_webcam(rgb_small_frame, predictions)


 "withOpenCV.py", line 60, in show_labels_on_webcam

cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2)
TypeError: Layout of the output array img is incompatible with cv::Mat (step[ndims-1] != elemsize or step[1] != elemsize*nchannels)

Traceback (most recent call last):


 "F:/tensorflow/project/huiming/t2t_decode.py", line 203, in <module>

tf.app.run()


 "F:\tensorflow\tf_env\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run

_sys.exit(main(argv))


 "F:/tensorflow/project/huiming/t2t_decode.py", line 198, in main

decode(estimator, hp, decode_hp)


 "F:/tensorflow/project/huiming/t2t_decode.py", line 98, in decode

checkpoint_path=FLAGS.checkpoint_path)


 "F:\tensorflow\tf_env\lib\site-packages\tensor2tensor\utils\decoding.py", line 393, in decode_from_file

for elapsed_time, result in timer(result_iter):


 "F:\tensorflow\tf_env\lib\site-packages\tensor2tensor\utils\decoding.py", line 387, in timer

item = next(gen)


 "F:\tensorflow\tf_env\lib\site-packages\tensorflow\python\estimator\estimator.py", line 577, in predict

features, None, model_fn_lib.ModeKeys.PREDICT, self.config)


 "F:\tensorflow\tf_env\lib\site-packages\tensorflow\python\estimator\estimator.py", line 1195, in _call_model_fn

model_fn_results = self._model_fn(features=features, **kwargs)


 "F:\tensorflow\tf_env\lib\site-packages\tensor2tensor\utils\t2t_model.py", line 1264, in wrapping_model_fn

use_tpu=use_tpu)


 "F:\tensorflow\tf_env\lib\site-packages\tensor2tensor\utils\t2t_model.py", line 1319, in estimator_model_fn

return model.estimator_spec_predict(features, use_tpu=use_tpu)


 "F:\tensorflow\tf_env\lib\site-packages\tensor2tensor\utils\t2t_model.py", line 1521, in estimator_spec_predict

use_tpu=use_tpu)


 "F:\tensorflow\tf_env\lib\site-packages\tensor2tensor\utils\t2t_model.py", line 691, in infer

top_beams, alpha, use_tpu)
TypeError: _beam_decode() takes 6 positional arguments but 7 were given
