GCN_for_EEG icon indicating copy to clipboard operation
GCN_for_EEG copied to clipboard

DenseGCN_Model Execution Issue

Open Abumasroorah opened this issue 3 years ago • 0 comments

Dear Scholar, Foremost, I will like to appreciate your intellectual effort in putting up the GCN related codes as compact as possible, it has really helped in conceiving the idea greatly.

I tried to execute the onEEGcode but using the DenseGCN_Model instead of the the models used by default and surprisingly, I got the error below

Traceback (most recent call last): File "C:/Users/Abdul/PycharmProjects/AbdulProject2/03Main/main_onEEGcode.py", line 89, in model=DenseGCN_Model.cgcnn(L, **params) File "C:\Users\Abdul\PycharmProjects\AbdulProject2\scripts\DenseGCN_Model.py", line 435, in init self.build_graph(M_0) File "C:\Users\Abdul\PycharmProjects\AbdulProject2\scripts\DenseGCN_Model.py", line 165, in build_graph op_logits = self.inference(self.ph_data, self.ph_dropout) File "C:\Users\Abdul\PycharmProjects\AbdulProject2\scripts\DenseGCN_Model.py", line 193, in inference logits = self._inference(data, dropout) File "C:\Users\Abdul\PycharmProjects\AbdulProject2\scripts\DenseGCN_Model.py", line 703, in _inference x_2 = self.filter(x_1, self.L[1], self.F[1], self.K[1]) File "C:\Users\Abdul\PycharmProjects\AbdulProject2\scripts\DenseGCN_Model.py", line 546, in chebyshev5 x1 = tf.sparse_tensor_dense_matmul(L, x0) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\ops\sparse_ops.py", line 2336, in sparse_tensor_dense_matmul adjoint_b=adjoint_b) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\ops\gen_sparse_ops.py", line 2910, in sparse_tensor_dense_mat_mul adjoint_b=adjoint_b, name=name) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper op_def=op_def) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func return func(*args, **kwargs) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op op_def=op_def) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\framework\ops.py", line 1823, in init control_input_ops) File "C:\Users\Abdul\Anaconda2\envs\AbdulProject2\lib\site-packages\tensorflow\python\framework\ops.py", line 1662, in _create_c_op raise ValueError(str(e)) ValueError: Dimensions must be equal, but are 32 and 64 for 'conv2/SparseTensorDenseMatMul/SparseTensorDenseMatMul' (op: 'SparseTensorDenseMatMul') with input shapes: [992,2], [992], [2], [64,16384] and with input tensors computed as partial shapes: input[2] = [32,32].

Could you please let me know the line of the DenseGCN_Model to alter to be able to solve this issue.

Thanks and regards

Abumasroorah avatar Apr 04 '21 08:04 Abumasroorah