keras-cv icon indicating copy to clipboard operation
keras-cv copied to clipboard

Fix Segformer test for num_classes 1 with softmax

Open sampathweb opened this issue 11 months ago • 1 comments

Keras has recently started to emit warnings when softmax has only one class. This PR fixes it by having more than one class at the output. Or we can re-compile the model with BinaryCrossEntropy if we want num_classes to 1.

sampathweb avatar Mar 21 '24 20:03 sampathweb