yizt / keras-ctpn

keras复现场景文本检测网络CPTN: 《Detecting Text in Natural Image with Connectionist Text Proposal Network》;欢迎试用,关注,并反馈问题...
Apache License 2.0
107 stars 38 forks source link

正负样本编号问题 #4

Closed RabbearSu closed 5 years ago

RabbearSu commented 5 years ago

https://github.com/yizt/keras-ctpn/blob/9427448873ec187eb35379ce382a5529ecc5d84f/ctpn/layers/target.py#L161 为什么正样本要在原始的anchor_indices中(tf.gather),而negative的indices不需要变换?

yizt commented 5 years ago

@RabbearSu 非常感谢您的反馈,这是一个bug,已经修复;