Skip to content

Commit

Permalink
fix dim issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLHT committed May 3, 2023
1 parent f574244 commit f281084
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rhana/labeler/masker.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def predict(self, rd, do_rle:bool=False, threshold:bool=0.5):
inp = (inp - self.normalize.mean)/self.normalize.std
scores = torch.sigmoid(self.learn.model(inp))
masks = scores > threshold
masks = masks[0]

# masks = scores > threshold
classes = self.learn.classes # classes variable store which label is predicted channel-wise
Expand Down

0 comments on commit f281084

Please sign in to comment.