Even in my case this is happening I have a classes in the range of 0 to 12 but still my  target.min() and target.max() is 0 to 442.
target shape is  [8,1,128,128]
output shape is [8,13,128,128]
Thanks if you can help.