eriklindernoren / Keras-GAN

Keras implementations of Generative Adversarial Networks.
MIT License
9.19k stars 3.14k forks source link

when training CGAN, raise AttributeError: 'list' object has no attribute 'keys' in the following code #245

Closed louiseviden closed 3 years ago

louiseviden commented 3 years ago

d_loss_real = self.discriminator.train_on_batch(imgs, [valid, one_hot_labels], class_weight=[cw1, cw2]) d_loss_fake = self.discriminator.train_on_batch(gen_imgs, [fake, fake_labels], class_weight=[cw1, cw2])

yyz277322264 commented 3 years ago

Has the problem been solved?

louiseviden commented 3 years ago

Has the problem been solved?

no

GaNir commented 3 years ago

The problem is related to class_weight=[cw1, cw2] parameter

RahaSoleymanzadeh commented 3 years ago

The problem is related to class_weight=[cw1, cw2] parameter

How can I solve the same problem?

anwarsaqib commented 1 year ago

Did you solve the problem? I am facing the issue with SGAN