Assertion error with get_disc_loss

I have an assertion error in my get_disc_loss function but I can’t find where it comes from. Could you help me ?

I detached the fake images from generator before feeding them to the discriminator.


Hi Math16, welcome to the community!
Can you just attach a screenshot of your “get_disc_loss” function, so that we can identify the issue that you are facing?

Hi Nithin,
Thanks for your fast reply but I have found the issue in meantime. I used the same discriminator inputs (from generator) for predictions of true and fake images…

Great! Many more interesting things to come up in GANs, have fun and enjoy learning them.