ChenhongyiYang / QueryDet-PyTorch

[CVPR 2022 Oral] QueryDet: Cascaded Sparse Query for Accelerating High-Resolution Small Object Detection
MIT License
432 stars 47 forks source link

attribute:'torch.device' object has no attribute 'device' #90

Open nooneAB opened 7 months ago

nooneAB commented 7 months ago

How can I resolve this? I used cuda 11.8+ torch 2.0.1 + python 3.9 and this problem still exists.(my environment)

nooneAB commented 7 months ago

I know that some people uesd detectreon2-v0.2.1 before,but there was no amp function.

20191661 commented 5 months ago

请问解决了吗,我也是这个问题

nooneAB commented 5 months ago

wrapper最后一行改了

---Original--- From: @.> Date: Tue, Jun 4, 2024 17:08 PM To: @.>; Cc: @.**@.>; Subject: Re: [ChenhongyiYang/QueryDet-PyTorch] attribute:'torch.device' objecthas no attribute 'device' (Issue #90)

请问解决了吗,我也是这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

20191661 commented 5 months ago

能说一下wrapper的最后一行改成什么了吗

------------------ 原始邮件 ------------------ 发件人: "ChenhongyiYang/QueryDet-PyTorch" @.>; 发送时间: 2024年6月4日(星期二) 晚上10:28 @.>; @.**@.>; 主题: Re: [ChenhongyiYang/QueryDet-PyTorch] attribute:'torch.device' object has no attribute 'device' (Issue #90)

wrapper最后一行改了

---Original--- From: @.> Date: Tue, Jun 4, 2024 17:08 PM To: @.>; Cc: @.**@.>; Subject: Re: [ChenhongyiYang/QueryDet-PyTorch] attribute:'torch.device' objecthas no attribute 'device' (Issue #90)

请问解决了吗,我也是这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

20191661 commented 5 months ago

我改了最后一行之后的训练时长就很长了,请问有更好的办法吗

nooneAB commented 5 months ago

训练时长跟你的参数设置有关,跟这个地方貌似关系不大。

---Original--- From: @.> Date: Tue, Jun 11, 2024 10:45 AM To: @.>; Cc: @.**@.>; Subject: Re: [ChenhongyiYang/QueryDet-PyTorch] attribute:'torch.device' objecthas no attribute 'device' (Issue #90)

我改了最后一行之后的训练时长就很长了,请问有更好的办法吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

pkuj103 commented 4 months ago

请问解决了吗,我也是这个问题

pkuj103 commented 4 months ago

请问解决了吗,我也是这个问题

请问解决了吗,我也是这个问题