-
Notifications
You must be signed in to change notification settings - Fork 58
Description
I have the following error when running the code with your calendar and city data:
Testing path: ./data/test/city
of testing frames: 31
Traceback (most recent call last):
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 497, in _import_graph_def_internal
graph._c_graph, serialized, options) # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: slice index 1 of dimension 1 out of bounds. for '{{node import/strided_slice_1}} = StridedSlice[Index=DT_INT32, T=DT_FLOAT, begin_mask=29, ellipsis_mask=0, end_mask=29, new_axis_mask=0, shrink_axis_mask=2](import/rgb2y/add, import/strided_slice_1/stack, import/strided_slice_1/stack_1, import/strided_slice_1/stack_2)' with input shapes: [1,1,120,160,1], [5], [5], [5] and with computed input tensors: input[1] = <0 1 0 0 0>, input[2] = <0 2 0 0 0>, input[3] = <1 1 1 1 1>.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main_videosr_deploy_4x3f.py", line 117, in
tf.app.run()
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "main_videosr_deploy_4x3f.py", line 114, in main
model.test()
File "main_videosr_deploy_4x3f.py", line 81, in test
output = tf.import_graph_def(graph_def, input_map={'Placeholder:0': frames_lr}, return_elements=['output:0'])
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 549, in new_func
return func(*args, **kwargs)
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 405, in import_graph_def
producer_op_list=producer_op_list)
File "/home/matina/venv_pytorch/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 501, in _import_graph_def_internal
raise ValueError(str(e))
ValueError: slice index 1 of dimension 1 out of bounds. for '{{node import/strided_slice_1}} = StridedSlice[Index=DT_INT32, T=DT_FLOAT, begin_mask=29, ellipsis_mask=0, end_mask=29, new_axis_mask=0, shrink_axis_mask=2](import/rgb2y/add, import/strided_slice_1/stack, import/strided_slice_1/stack_1, import/strided_slice_1/stack_2)' with input shapes: [1,1,120,160,1], [5], [5], [5] and with computed input tensors: input[1] = <0 1 0 0 0>, input[2] = <0 2 0 0 0>, input[3] = <1 1 1 1 1>.