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
作者您好 训练一段时间之后出现这样的问题 TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() 就是说GPU环境没办法将tensor转换成numpy,需要在哪里添加".cpu()"呢
The text was updated successfully, but these errors were encountered:
你可以尝试修改utils/utils.py line 819 中的 targets.append([i, cls, x, y, w, h, conf])为 targets.append([i, cls, x.cpu(), y.cpu(), w.cpu(), h.cpu(), conf.cpu()])
Sorry, something went wrong.
No branches or pull requests
作者您好
训练一段时间之后出现这样的问题
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu()
就是说GPU环境没办法将tensor转换成numpy,需要在哪里添加".cpu()"呢
The text was updated successfully, but these errors were encountered: