Source-Free-Object-Detection-by-Learning-to-Overlook-Domain-Style icon indicating copy to clipboard operation
Source-Free-Object-Detection-by-Learning-to-Overlook-Domain-Style copied to clipboard

get nan loss when training target model in overlooking style module

Open lixi92 opened this issue 11 months ago • 2 comments

get nan loss when training target model in overlooking style module on custom datasets even set learning rate to a very small number

lixi92 avatar Mar 23 '24 09:03 lixi92

I have the same problem, did you deal with it?

CHIGIRI19 avatar Apr 17 '24 14:04 CHIGIRI19

Hi there. I ran this repo long time ago for my own research. To address the loss=nan issue, I guess it's originally from bbox loss and you may need to check bbox coordinates as it may be out of bounds after +1 or -1. I cannot clearly remember where to modify.

Furthermore, you may need to downgrade to Python 2.7.12 PyTorch 1.0.0 torchvision 0.2.2 as stated in readme. This is deprecated even years ago but I clearly remember that I can't reproduce the results under much higher python and torch version. Good luck to you.

HeinZingerRyo avatar Apr 23 '24 09:04 HeinZingerRyo