lmb-freiburg/netdef_models

InvalidArgumentError: No OpKernel was registered to support Op 'Correlation1D' with these attrs. Registered devices: [CPU]

Wanghaiyang0211 opened this issue · 0 comments

ubuntu16.04
tensorflow=1.4(NO GPU)
python:3.6.4
lmbspecialops:eccv18
when I run the demo(dispnet3):
python3 controller.py eval image0_path image1_path out_dir
I get the follow errors:
evolution <00__flyingThings3D.train__S_short>: 00__flyingThings3D.train__S_short COMPLETE
data:
OrderedDict([('width', 960), ('height', 540), ('img', <netdef_slim.tensorflow.core.struct._Struct object at 0x7f4ec26f7dd8>)]
Evo manager: complete
Evolution: /home/itx/PycharmProjects/netdef_models-master/DispNet3/css/training/00__flyingThings3D.train__S_short
pred:
OrderedDict([('levels', <netdef_slim.tensorflow.core.struct._Struct object at 0x7f4ebbfcbf28>), ('final', <netdef_slim.tensorflow.core.struct._Struct object at 0x7f4ebbb5e2e8>)]
output:
OrderedDict([('disp', <netdef_slim.tensorflow.core.struct._Struct object at 0x7f4ede604fd0>), ('occ', <netdef_slim.tensorflow.core.struct._Struct object at 0x7f4ef0afa748>), ('db', <netdef_slim.tensorflow.core.struct._Struct object at 0x7f4ebc26ff28>)]
Traceback (most recent call last):
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call
return fn(*args)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1293, in _run_fn
self._extend_graph()
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1354, in _extend_graph
self._session, graph_def.SerializeToString(), status)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'Correlation1D' with these attrs. Registered devices: [CPU], Registered kernels:

 [[Node: net1/upper/Correlation1D = Correlation1D[T=DT_FLOAT, corr_type="mult", do_abs=false, kernel_size=1, max_displacement=40, pad_size=40, single_dir=0, stride1=1, stride2=1](net1/features/conv3/LeakyRelu, net1/features/conv3_2/LeakyRelu)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/controller.py", line 19, in
controller.run()
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/base_controller.py", line 36, in run
self._command_hookscommand
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/base_controller.py", line 53, in eval
state=self._args.state)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/base_controller.py", line 91, in eval
output = self.net_actions(net_dir=self.base_path).eval(**kwargs)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/net_actions.py", line 54, in eval
session.run(tf.global_variables_initializer())
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 889, in run
run_metadata_ptr)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1120, in _run
feed_dict_tensor, options, run_metadata)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1317, in _do_run
options, run_metadata)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1336, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'Correlation1D' with these attrs. Registered devices: [CPU], Registered kernels:

 [[Node: net1/upper/Correlation1D = Correlation1D[T=DT_FLOAT, corr_type="mult", do_abs=false, kernel_size=1, max_displacement=40, pad_size=40, single_dir=0, stride1=1, stride2=1](net1/features/conv3/LeakyRelu, net1/features/conv3_2/LeakyRelu)]]

Caused by op 'net1/upper/Correlation1D', defined at:
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/controller.py", line 19, in
controller.run()
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/base_controller.py", line 36, in run
self._command_hookscommand
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/base_controller.py", line 53, in eval
state=self._args.state)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/base_controller.py", line 91, in eval
output = self.net_actions(net_dir=self.base_path).eval(**kwargs)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/controller/net_actions.py", line 50, in eval
height = height,
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/networks/dispnet/dispnet_2f_env.py", line 29, in make_eval_graph
scale = scale
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/deploy/std_deployment.py", line 156, in make_graph
pred = net_graph_constructor(input)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/networks/dispnet/dispnet_2f_env.py", line 27, in
net_graph_constructor=lambda data: self.make_net_graph(data, include_losses=False),
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/networks/dispnet/dispnet_2f_env.py", line 15, in make_net_graph
return self._net.make_graph(data, **kwargs)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/net.py", line 40, in make_graph
out1 = arch1.make_graph(data.img.L, data.img.R, use_1D_corr=True, single_direction=0)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/architectures/architecture_c.py", line 260, in make_graph
out = self._upper.make_graph(feat, edge_features, use_1D_corr, single_direction)
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/architectures/architecture_c.py", line 143, in make_graph
single_direction=single_direction
File "/home/itx/PycharmProjects/netdef_models-master/DispNet3/css/netdef_slim/tensorflow/core/ops/flow_disp.py", line 70, in _correlation_1d
pad_size=pad)
File "", line 616, in correlation1d
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 328, in apply_op
op_type_name, name, **keywords)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
op_def=op_def)
File "/home/itx/tools/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1470, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access

InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Correlation1D' with these attrs. Registered devices: [CPU], Registered kernels:

 [[Node: net1/upper/Correlation1D = Correlation1D[T=DT_FLOAT, corr_type="mult", do_abs=false, kernel_size=1, max_displacement=40, pad_size=40, single_dir=0, stride1=1, stride2=1](net1/features/conv3/LeakyRelu, net1/features/conv3_2/LeakyRelu)]]

Process finished with exit code 1