⋮
, then selecting Move to training set. Make sure to update the label before training.Auto-weight classes
⋮
and select Switch to Keras (expert) mode
.from
) add:fit()
is called), add class_weight=classweights
. E.g.:weighted_cross_entropy_with_logits
). We set the background class to a weight of 1 and the other classes to 100. This helps the model to focus on the objects rather than the background.construct_weighted_xent_fn
function is overwritten to use a sigmoid_cross_entropy_with_logits
loss.construct_weighted_xent_fn
function is overwritten to use a sparse_softmax_cross_entropy_with_logits
loss.