Skip to content
New issue

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

请问训练完成后如何进行detection #12

Open
YunLongPan opened this issue Oct 22, 2020 · 6 comments
Open

请问训练完成后如何进行detection #12

YunLongPan opened this issue Oct 22, 2020 · 6 comments

Comments

@YunLongPan
Copy link

win10,显卡2080s,train.py训练正常,训练完成后运行predict出现错误。
Traceback (most recent call last):
File "D:/R-CenterNet-master/predict.py", line 237, in
output, dets, forward_time = process(images, return_time=True)
File "D:/R-CenterNet-master/predict.py", line 152, in process
output = model(images)
File "D:\Anaconda\envs\CenterNet2\lib\site-packages\torch\nn\modules\module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "./backbone\dlanet.py", line 610, in forward
ret[head] = self.getattr(head)(x)
File "D:\Anaconda\envs\CenterNet2\lib\site-packages\torch\nn\modules\module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "D:\Anaconda\envs\CenterNet2\lib\site-packages\torch\nn\modules\container.py", line 91, in forward
input = module(input)
File "D:\Anaconda\envs\CenterNet2\lib\site-packages\torch\nn\modules\module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "D:\Anaconda\envs\CenterNet2\lib\site-packages\torch\nn\modules\conv.py", line 301, in forward
self.padding, self.dilation, self.groups)
RuntimeError: CUDA error: out of memory

@yearddxx01
Copy link

楼上,应该是你的显存不够用了,参数改小点

@yearddxx01
Copy link

你能发一下你训练用的什么命令吗?

@yearddxx01
Copy link

用的是dcn版本吗?

@YunLongPan
Copy link
Author

用的是dcn版本吗?

您好! 问题已解决,原因是我原来用的是torch0.4版本的环境,换成torch1.2以后没有该报错问题。但不知在R-CenterNet中如何编译DCN,与原版CenterNet中的DCN文件有些区别。

@ZeroE04
Copy link
Owner

ZeroE04 commented Nov 4, 2020

用的是dcn版本吗?

您好! 问题已解决,原因是我原来用的是torch0.4版本的环境,换成torch1.2以后没有该报错问题。但不知在R-CenterNet中如何编译DCN,与原版CenterNet中的DCN文件有些区别。

您好,R-CeneterNet编译DCN与原版保持一致,直接复制即可,我自己也是用的原版CenterNet编译的DCN。

@ustczhouyu
Copy link

请问怎么根据给定的矩形的四个顶点坐标来生成符合要求的json格式的标签,能分享代码吗?谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants