In def ssd_losses_old, nvalues = tf.where(nmask,predictions[:, :, :, :, 0],1. - fnmask), so nvalues = 1 if this anchor is positive and navalues = predictions[:,:,:,:,0], and is this predictions indicate the possibilities of background, and then val, idxes = tf.nn.top_k(-nvalues_flat, k=n_neg), is this meanings the negative samples are chosen which have low possibilities of background first?
In def ssd_losses_old, nvalues = tf.where(nmask,predictions[:, :, :, :, 0],1. - fnmask), so nvalues = 1 if this anchor is positive and navalues = predictions[:,:,:,:,0], and is this predictions indicate the possibilities of background, and then val, idxes = tf.nn.top_k(-nvalues_flat, k=n_neg), is this meanings the negative samples are chosen which have low possibilities of background first?