YanchaoYang / FDA

Fourier Domain Adaptation for Semantic Segmentation
491 stars 79 forks source link

Not able to understand this line #3

Closed kaushal-py closed 4 years ago

kaushal-py commented 4 years ago

I am not able to understand the use of this line in the entropy loss implementation. How was this derived? What is its relation to number of classes?

https://github.com/YanchaoYang/FDA/blob/b9a0cdf0bcc9b787c00e39df73eda5673706f219/model/CLS.py#L51

YanchaoYang commented 4 years ago

This number is the maximum entropy when assuming uniform distribution, which is to normalize the entropy been calculated.