We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current training script breaks with the new version of pytorch. The fix is to replace lines 88-92 of train.py with:
if torch.__version__.startswith('0.3'): bbox_loss += net.bbox_loss.data.cpu().numpy()[0] iou_loss += net.iou_loss.data.cpu().numpy()[0] cls_loss += net.cls_loss.data.cpu().numpy()[0] train_loss += loss.data.cpu().numpy()[0] else: bbox_loss += float(net.bbox_loss.data.cpu().numpy()) iou_loss += float(net.iou_loss.data.cpu().numpy()) cls_loss += float(net.cls_loss.data.cpu().numpy()) train_loss += float(loss.data.cpu().numpy())
The text was updated successfully, but these errors were encountered:
Or you can get the scalar using net.bbox_loss.item() in pytorch0.4
net.bbox_loss.item()
Sorry, something went wrong.
No branches or pull requests
The current training script breaks with the new version of pytorch. The fix is to replace lines 88-92 of train.py with:
The text was updated successfully, but these errors were encountered: