Thank you for your interesting work and it is very useful in practical applications. I encountered this question, when training my own counting dataset? I added "print" in matcher.py and I finded there were NAN values. why? please help me, thank you very much!
Thank you for your interesting work and it is very useful in practical applications. I encountered this question, when training my own counting dataset? I added "print" in matcher.py and I finded there were NAN values. why? please help me, thank you very much!
energy.mean(), features.mean(): tensor(-14.2665, device='cuda:4', grad_fn=) tensor(0.1236, device='cuda:4', grad_fn=)
torch.Size([8, 1024]) torch.Size([8, 1024]) 0.0
energy.mean(), features.mean(): tensor(-17.7250, device='cuda:4', grad_fn=) tensor(0.1354, device='cuda:4', grad_fn=)
torch.Size([8, 1024]) torch.Size([8, 1024]) 0.0
energy.mean(), features.mean(): tensor(nan, device='cuda:4', grad_fn=) tensor(nan, device='cuda:4', grad_fn=)