sText2Image icon indicating copy to clipboard operation
sText2Image copied to clipboard

Dimension Issue

Open harithahpillai opened this issue 1 year ago • 0 comments

On running test.py I got this error I run this program on google colab.

/content/model.py:378: SyntaxWarning: assertion is always true, perhaps remove parentheses? assert(len(attr_v) == self.text_vector_dim, "attribute vector must have the given length") 2023-01-14 18:28:16.321780: E tensorflow/stream_executor/cuda/cuda_driver.cc:271] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected Traceback (most recent call last): File "test.py", line 38, in model = GAN(sess, File "/content/model.py", line 83, in init self.build_model() File "/content/model.py", line 106, in build_model self.G = self.generator(self.z, self.t) File "/content/model.py", line 532, in generator h0_concat = tf.concat(3, [z_, t_tiled]) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/framework/ops.py", line 1963, in _create_c_op raise ValueError(e.message) ValueError: Dimension 3 in both shapes must be equal, but are 64 and 18. Shapes are [64,4,8,64] and [64,4,8,18]. From merging shape 0 with other shapes. for '{{node concat/concat_dim}} = Pack[N=2, T=DT_INT32, axis=0](concat/Cast, concat/Cast_1)' with input shapes: [64,4,8,64], [64,4,8,18].

Please help me to solve this.

harithahpillai avatar Jan 14 '23 18:01 harithahpillai