ssd.pytorch icon indicating copy to clipboard operation
ssd.pytorch copied to clipboard

solution to pytorch==0.4

Open zsp1197 opened this issue 8 years ago • 4 comments

change Hard Negative Mining in multibox_loss.py (line 101) from loss_c[pos] = 0 to loss_c[pos.view(-1, 1)] = 0 Then change loss_l /= N loss_c /= N in the same file to loss_l /= N.float() loss_c /= N.float()

zsp1197 avatar Jun 10 '18 09:06 zsp1197

This is not an issue bug a comment.

zsp1197 avatar Jun 10 '18 09:06 zsp1197

Thank you!

srslynow avatar Jul 24 '18 22:07 srslynow

thanks

zhenxingsh avatar Aug 28 '18 08:08 zhenxingsh

why do we need to add .float()? whether in py2 or py3, it should be the same since loss_l is float

niaoyu avatar Dec 06 '18 18:12 niaoyu