YanchaoYang / FDA

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

ent = ent / 2.9444 #23

Closed Nadavc220 closed 3 years ago

Nadavc220 commented 3 years ago

Hi, in the training phase, when calculating the loss_ent variable in line 173 there is a line as follows: ent = ent / 2.9444 # chanage when classes is not 19

what does the number 2.9444 represent and how should we change it if we use a different number of classes than 19? I did not find any reference to this in the paper.

Thanks.

Nadavc220 commented 3 years ago

Sorry, I see now that this questions was already asked. The answer is ln(num_classes)