Skip to content

Commit

Permalink
fix bug for inference with cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
YahooKID authored Sep 12, 2023
1 parent 67a3c76 commit 8b4f6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolov6/models/heads/effidehead_fuseab_seg_solo.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def forward(self, x):
reg_output_af = self.proj_conv(F.softmax(reg_output_af, dim=1))

cls_output_af = torch.sigmoid(cls_output_af)
proto_no = (torch.ones(b, 1, l) * i).cuda()
proto_no = (torch.ones(b, 1, l) * i).to(device)


if self.export:
Expand Down

0 comments on commit 8b4f6b0

Please sign in to comment.