FGD icon indicating copy to clipboard operation
FGD copied to clipboard

very slow training

Open businiaoo opened this issue 2 years ago • 3 comments

Line 86 in the forward function in mmdet/distillation/losses/fgd.py There are two for loops here, in my test, these two for loops slow down the training seriously, is there any solution?

businiaoo avatar Jun 27 '22 09:06 businiaoo

The for loops is build upon batch size, I guess there should not be some great slowing, I mean there are just 16 samples in total.

dw763j avatar Jul 01 '22 01:07 dw763j

I also encountered the same problem, have you solved it?

Muke6 avatar Jul 20 '22 09:07 Muke6

Is there need to add a line ' with torch.no_grad(): ' when get the mask?

Tongfengyu avatar Jul 21 '22 01:07 Tongfengyu