Open caijch opened 5 years ago
I also find this problem,but I don't know whether your solution is correct.
ayers/modules/multibox_loss.py
# Hard Negative Mining loss_c[pos] = 0 # filter out pos boxes for now loss_c = loss_c.view(num, -1)
should be as loss_c = loss_c.view(num, -1) loss_c[pos] = 0 # filter out pos boxes for now
This is the right solution.
should be as:
pos = pos.view(loss_c.shape) loss_c[pos] = 0 # filter out pos boxes for now pos = pos.view(num, -1)
ayers/modules/multibox_loss.py
should be as loss_c = loss_c.view(num, -1) loss_c[pos] = 0 # filter out pos boxes for now