mmpretrain icon indicating copy to clipboard operation
mmpretrain copied to clipboard

Question about DistOptHook

Open HarborYuan opened this issue 2 years ago • 1 comments

Checklist

  • I have searched related issues but cannot get the expected help. done.
  • I have read related documents and don't know what to do. done.

Describe the question you meet

Hi,

I want to check the grad norm info when training. However, the current implementation of DistOptHook prevent the textlogger from priting gradnorm.

I can circumvent it by myself, but does the DistOptHook has its functionality? Can we move to mmcv OptHook?

I can raise a PR if neccessary.

Thanks.

HarborYuan avatar Apr 16 '22 08:04 HarborYuan

Looks it's a legacy problem. Welcome to change it to the OptimizerHook in mmcv, and we will test it.

mzr1996 avatar Apr 16 '22 08:04 mzr1996

This issue will be closed as it is inactive, feel free to re-open it if necessary.

tonysy avatar Dec 12 '22 15:12 tonysy