Do you see these two-class output only during validation or was it also the case during training?
Could you check the unique values of each target tensor during training and make sure it’s containing all expected 10 labels throughout the training?