Skip to content

Commit

Permalink
Merge pull request #41 from bit-bots/fix/segmentations_as_uint8
Browse files Browse the repository at this point in the history
Output Segmentations as uint8 Instead of int64
  • Loading branch information
phinik authored May 4, 2022
2 parents e84cb2f + 5bf9da4 commit 483a7e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "YOEO"
version = "1.1.0"
version = "1.1.1"
description = "A hybrid CNN for object detection and semantic segmentation"
authors = ["Florian Vahl <[email protected]>", "Jan Gutsche <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion yoeo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def forward(self, x):
if self.training:
return x
else:
return torch.argmax(x, dim=1)
return torch.argmax(x, dim=1).to(torch.uint8)


class Darknet(nn.Module):
Expand Down

0 comments on commit 483a7e8

Please sign in to comment.