Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philippmwirth committed Nov 20, 2023
1 parent abbb9cd commit 2fc656b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lightly/models/modules/heads.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,7 @@ def get_updated_group_features(self, x: torch.Tensor) -> torch.Tensor:
mask = assignments == assigned_class
group_features[assigned_class] = self.beta * self.group_features[
assigned_class
] + (1 - self.beta) * x[mask].mean(
axis=0
) # type: ignore
] + (1 - self.beta) * x[mask].mean(dim=0)

return group_features

Expand Down

0 comments on commit 2fc656b

Please sign in to comment.