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

report bug in crf

Open ethanyxfang opened this issue 5 years ago • 2 comments

In add_boundary_energy() with mask: https://github.com/keras-team/keras-contrib/blob/5ffab172661411218e517a50170bb97760ea567b/keras_contrib/layers/crf.py#L401-L405 In this way the right_boundary will never be involved in optimization. Is there a mistake in this calculation of end_mask? I think the correct calculation should be: end_mask = K.cast(K.greater(mask, self.shift_left(mask)), K.floatx())

ethanyxfang avatar Jul 15 '19 03:07 ethanyxfang

cc @lzfelix

touhi99 avatar Jul 30 '19 15:07 touhi99

I found the same error

rtygbwwwerr avatar Sep 19 '19 12:09 rtygbwwwerr