Skip to content

Commit 463d8e7

Browse files
committed
Merge branch 'yolov6-seg' of github.com:meituan/YOLOv6 into yolov6-seg
2 parents c92a7ed + 8b4f6b0 commit 463d8e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

yolov6/models/heads/effidehead_fuseab_seg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def forward(self, x):
263263

264264
cls_output_af = torch.sigmoid(cls_output_af)
265265
# seg_output_af = torch.sigmoid(seg_output_af)
266-
proto_no = (torch.ones(b, 1, l) * i).cuda()
266+
proto_no = (torch.ones(b, 1, l) * i).to(device)
267267

268268

269269
if self.export:

yolov6/models/heads/effidehead_fuseab_seg_solo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def forward(self, x):
252252
reg_output_af = self.proj_conv(F.softmax(reg_output_af, dim=1))
253253

254254
cls_output_af = torch.sigmoid(cls_output_af)
255-
proto_no = (torch.ones(b, 1, l) * i).cuda()
255+
proto_no = (torch.ones(b, 1, l) * i).to(device)
256256

257257

258258
if self.export:

0 commit comments

Comments
 (0)