-
Notifications
You must be signed in to change notification settings - Fork 4
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
A0 needs to be placed on the GPU GPU和CPU #3
Comments
您好,感谢您对本研究的关注。
如果想要将AGCA模块部署在cpu上请在初始化A0的代码上,去掉.to('cuda')即可。
|
|
注意力模块部署在CPU或GPU上取决于您的需求。 AGCA模块即插即用的含义,简单点来说就是,在任何一个包含您所提到的SE或CBAM模块的神经网络中,它们都可以被AGCA直接替换。 和训练其他神经网络模型一样,初始化和训练应该保持模型数据都在GPU或者CPU其中一个上面。 感谢您的问题,我们会在公布的代码中加入这一部分的注释。 |
根据您的报错信息,在修改以后A0,它就在cpu上了。此时,整个模型都应该在cpu上。但是实际输出仍然有两个cuda。我怀疑是A1和A2会在gpu上。这应该是跟yolov5模型的设置有关。
|
您好,如果还没有解决的话,可以尝试在 |
你好,请问这个问题解决了吗? |
亲测windows系统上Yolov8这样改就不会出错了,但是还需要关闭Yolov8的半精度设置https://blog.csdn.net/weixin_44625095/article/details/132296858?fromshare=blogdetail&sharetype=blogdetail&sharerId=132296858&sharerefer=PC&sharesource=hhxxyz&sharefrom=from_link |
@HHX-688 我想问一下,关闭Yolov8的半精度设置会产生什么样的影响? |
训练时间慢一点,占用内存多一点,其实影响不大 |
作者您好,通过这步操作将A0放在GPU上,
但是其他模型和数据都还在cpu上
因此,在执行这步操作的时候:
就报错一个数据在GPU、一个数据在CPU,无法进行运算,这个问题应该如何解决呢
The text was updated successfully, but these errors were encountered: