0
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-21-37ba827d3ac9> in <module>()
    11 gan_model = define_gan(g_model, d_model, image_shape)
    12 # train model
---> 13 train(d_model, g_model, gan_model, dataset)

 2 frames
 /usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/tensor_shape.py in assert_is_compatible_with(self, other)
 1169     """
 1170     if not self.is_compatible_with(other):
 -> 1171       raise ValueError("Shapes %s and %s are incompatible" % (self,other))
 1172 
 1173   def most_specific_compatible_shape(self, other):

 ValueError: Shapes (256, 256, 3) and (16, 16, 1) are incompatible

我在 PI2PIX GAN 模型上使用 SSIM。我在推动它时遇到了这个错误。

4

0 回答 0