Neykah / isgan

Personal Implementation of ISGAN paper - Morgan LEFRANC for Ridge-I
6 stars 6 forks source link

Error of ISGAN #2

Closed sepidnikseresht closed 2 years ago

sepidnikseresht commented 2 years ago

Hello, please help me.

runfile('C:/Users/hp/.spyder-py3/isgan.py', wdir='C:/Users/hp/.spyder-py3') Reloaded modules: SpatialPyramidPooling, utils Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/hp/.spyder-py3/isgan.py', wdir='C:/Users/hp/.spyder-py3')

File "C:\Users\hp\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(filename, namespace)

File "C:\Users\hp\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/hp/.spyder-py3/isgan.py", line 269, in is_model = ISGAN()

File "C:/Users/hp/.spyder-py3/isgan.py", line 20, in init self.base_model = self.set_base_model()

File "C:/Users/hp/.spyder-py3/isgan.py", line 77, in set_base_model L2 = InceptionBlock(16, 32)(L1)

File "C:\Users\hp.spyder-py3\utils.py", line 98, in InceptionBlock output = keras.layers.add([concat, res_link])

File "C:\Users\hp\Anaconda3\lib\site-packages\keras\layers\merge.py", line 555, in add return Add(**kwargs)(inputs)

File "C:\Users\hp\Anaconda3\lib\site-packages\keras\engine\base_layer.py", line 463, in call self.build(unpack_singleton(input_shapes))

File "C:\Users\hp\Anaconda3\lib\site-packages\keras\layers\merge.py", line 91, in build shape)

File "C:\Users\hp\Anaconda3\lib\site-packages\keras\layers\merge.py", line 61, in _compute_elemwise_op_output_shape str(shape1) + ' ' + str(shape2))

ValueError: Operands could not be broadcast together with shapes (64, 256, 8) (16, 256, 32)