Open bolinpu opened 5 years ago
Yes, it does. Only change the 33rd line in reid/trainers.py from losses.update(loss.data[0], targets.size(0)) to losses.update(loss.item(), targets.size(0))
losses.update(loss.data[0], targets.size(0))
losses.update(loss.item(), targets.size(0))
Yes, it does. Only change the 33rd line in reid/trainers.py from
losses.update(loss.data[0], targets.size(0))
tolosses.update(loss.item(), targets.size(0))