You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, according to definition of JS divergence (as mentioned in your supp file), JS divergence is calculated as the difference of
entropy of average probabilities and average of entropies.
However in your code, the first term of JS, aka the difference of entropy of average probabilities is implemented as:
In fact, img_seg are all unnormalized probabilities, aka logits defined in pytorch distribution's argument. I think in the code you attempted to do average upon logits instead of probabilies (since you have commented out Sigmoid in pixel_classifier)
Hi, according to definition of JS divergence (as mentioned in your supp file), JS divergence is calculated as the difference of
entropy of average probabilities and average of entropies.
However in your code, the first term of JS, aka the difference of entropy of average probabilities is implemented as:
datasetGAN_release/datasetGAN/train_interpreter.py
Line 304 in dee6d7d
where
mean_seg
is defined as average segmentation map of 10 outputs of ensembledpixel_classifier
s.Specifically, I have traced the implementation of
mean_seg
-->datasetGAN_release/datasetGAN/train_interpreter.py
Line 302 in dee6d7d
-->
datasetGAN_release/datasetGAN/train_interpreter.py
Lines 291 to 294 in dee6d7d
-->
img_seg
datasetGAN_release/datasetGAN/train_interpreter.py
Lines 282 to 284 in dee6d7d
In fact,
img_seg
are all unnormalized probabilities, aka logits defined in pytorch distribution's argument. I think in the code you attempted to do average upon logits instead of probabilies (since you have commented outSigmoid
inpixel_classifier
)datasetGAN_release/datasetGAN/train_interpreter.py
Lines 68 to 92 in dee6d7d
TL; DR
The unlawful commutation of

softmax
and linear operation leads to mis-implementation of JS divergence.The text was updated successfully, but these errors were encountered: