关于Variable-speed inference的疑问
yangyahu-1994 opened this issue · comments
Yang Yahu commented
Yang Yahu commented
Zhihao Lin commented
Lines 236 to 245 in 4dbb9b2
That is, 'score' in our code denotes the (1 - difficulty score). So, it is ok~
Yang Yahu commented
Zhihao Lin commented
Lines 244 to 245 in 4dbb9b2
分数足够低会选择second,分数足够高则会选择first。因此,这是由训练决定的,只要训练与推理统一即可。
Yang Yahu commented
Lines 244 to 245 in 4dbb9b2
分数足够低会选择second,分数足够高则会选择first。因此,这是由训练决定的,只要训练与推理统一即可。
由这里决定?奖励的检测器乘的是1- difficulty score,所以拟合出来的score实际上是1- difficulty score?
那我把这里的score和1-score调换后,计算出来的score就表示difficulty score了吧?
Zhihao Lin commented
Lines 244 to 245 in 4dbb9b2
除了loss要修改,模型的forward也需要修改(分数足够大则走second,足够小则走first)。修改后即可认为score是difficulty score