argman / EAST

A tensorflow implementation of EAST text detector
GNU General Public License v3.0
3.01k stars 1.05k forks source link

about training_mask and loss function #110

Open LouisRuan opened 6 years ago

LouisRuan commented 6 years ago

What's the use to parameter training_mask in loss function? after function shrink_poly,score_map is shrinked https://github.com/argman/EAST/blob/12d3a6b5c566c8ea231a8c31d2b4a1332ac6482d/icdar.py#L179 in loss function: https://github.com/argman/EAST/blob/12d3a6b5c566c8ea231a8c31d2b4a1332ac6482d/model.py#L133 y_true_cls(score_map)*training_mask always equal 0, the model_loss always close to 0.01(dice_coefficient result close to 1),after remove training_mask in loss function,my loss value become normal

argman commented 6 years ago

training mask is to ignore some small text regions when computing loss

caoyangcr7 commented 5 years ago

@LouisRuan hello, you mean that just only remove the training_mask in loss functions? I removed the training_mask, but the loss value still always close to 0.01, and never smaller than 0.01....is there any other operations? thanks

jiangmiaotong commented 5 years ago

@argman @caoyangcr7 I met the same issue, have you found any reason or solution?

caoyangcr7 commented 5 years ago

@jiangmiaotong maybe you can refer to https://github.com/argman/EAST/issues/228. May that help you