Update max_pooling_RHE.py

This commit is contained in:
xiaohou 2021-11-18 15:54:24 +08:00 committed by GitHub
parent 24a0de00b8
commit 95ffddd981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,10 @@ def max_pooling_RHE_binary_CE(logits,
max_ratio=1):
"""Max-pooling loss with regional hard example mining
For each keyword utterance, select the frame with the highest posterior.
The keyword is triggered when any of the frames is triggered.
For each non-keyword utterance, select several hard examples using the RHE algorithm.
The keyword is triggered when any of the frames is triggered.
For each non-keyword utterance, select several hard examples using the
RHE algorithm.
Attributes:
logits: (B, T, D), D is the number of keywords