I classify five classes, color, 128x128 pixel images, batch size = 64, using the Generative Adversarial Network. When creating a discriminator module, when execution
discriminator.bind(data_shapes = image_iter.provide_data, label_shapes = [('label', (batch_size, ))], inputs_need_grad = True)
I get an error:
data: (64, 3, 128, 128)
label: (64,)
Error in operator dloss: Shape inconsistent, Provided=[64], inferred shape=[64,25]
And I do not understand where does the number "25" come from? Operator dloss:
discriminatorSymbol = mx.sym.LogisticRegressionOutput(data = fl5, label = label, name = 'dloss')
I took all the information from this example. And everything works there.