DDRNet.pytorch icon indicating copy to clipboard operation
DDRNet.pytorch copied to clipboard

why `pred.exp()`?

Open SauceCat opened this issue 3 years ago • 0 comments

Thanks for the nice implementation :cat: :100:, I have a small question:

https://github.com/chenjun2hao/DDRNet.pytorch/blob/bc0e193e87ead839dbc715c48e6bfb059cf21b27/lib/datasets/base_dataset.py#L222 Why pred.exp() in inference? The real scores should be softmax(pred, dim=1) right? Just wonder what is the usage of adding exp() here, is it for visualization?

SauceCat avatar Nov 12 '21 12:11 SauceCat