loss must be avg when BS>1 when calling evaluate_batch()#1744
Conversation
|
@ycemsubakan could you please take a look? It might be that the same applies to other recipes (e.g, WSJ2MIX, LibriMix, etc.) |
|
@mravanelli @sangeet2020 I will try to do it this week. |
|
@sangeet2020 take a look into mine LibriCSS recipe. IMHO, it should be done inside compute_objective |
|
@MartinKocour , thanks for pointing this out. I 'll take a look tonight. |
yes, this is a suitable choice. I will modify it and re-commit. thanks @MartinKocour |
|
Hmm... we need make sure it works with both frequency domain and time.. I am checking now.. |
|
Actually, @MartinKocour , @sangeet2020 doing the averaging inside |
|
I pushed a small cosmetic update. @sangeet2020 , are you planning to have more updates? If yes, we can keep this PR open. If not, we can merge. |
|
Hi Cem, |
Alright, thanks for the PR @sangeet2020! |
Hi @ycemsubakan ,
I initiate this PR to fix a bug in the
WHAMandWHAMRrecipe. I realized that the current recipe works fine on batch_size as 1. However, when increased, losses are not averaged whenevaluate_batchis called.Basically, it makes sense to write
Thank You