Skip to content

Commit

Permalink
del cast
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Oct 4, 2023
1 parent 8a43527 commit 5196896
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
def forward(self, x):
batch_nums = x[:, 0:1].to(torch.float32) # batch number
class_nums = x[:, 1:2].to(torch.float32) # class ids
box_nums = x[:, [0,2]].to(torch.float32) # batch number + box number
box_nums = x[:, [0,2]] # batch number + box number
return batch_nums, class_nums, box_nums


Expand Down

0 comments on commit 5196896

Please sign in to comment.