I use the latest version of deeplab(v3+) to train my own dataset consisting of 6 classes. I am able to train my dataset but as my labels are strongly imbalanced I would like to weight each class with a class specific value.
Here is how I realized this with my SegNet
loss_weight = np.array([0.975644, 1.025603, 0.601745, 6.600600, 1.328684, 0.454776])
cross_entropy = -tf.reduce_sum(tf.multiply(labels * tf.log(softmax + epsilon), head), axis=[1])
How would that work with deeplab net?