rdevon / DIM

Deep InfoMax (DIM), or "Learning Deep Representations by Mutual Information Estimation and Maximization"
BSD 3-Clause "New" or "Revised" License
799 stars 102 forks source link

A question about the discriminator in CIFAR10 on a DCGAN architecture - local. #37

Closed yassouali closed 4 years ago

yassouali commented 4 years ago

First of all, thank you very much for providing the source code for your work,

I was going though the code to get a better understanding of the paper, and I have some questions, So for CIFAR 10 in case of Local DIM, the networks are as follows:

With local and global features, the next step of to compute the loss by computing the product of the two features in the form of [64, 64, 64, 1] and taking the positives from the diagonal and negatives as the rest.

My question, is what part of the network constitues the discriminator, given that the fake and real samples are computed as follows: image image

I can't see where does the Discriminator Dw appears in the implementation. Thank you.

yassouali commented 4 years ago

Ok, sorry, I should have checked the appendix first, so there is two possible ways of computing the negative and positive samples, either (1) by using a discriminator or (2) by computing a non linear embedding of the local and global feature maps with the possibility to evaluating a large number of positives and negatives. And the implementation above is for the second case.

The details are in appendix A2.