Skip to content

Commit

Permalink
[Fix]: Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanLiuuuuuu committed Apr 27, 2022
1 parent d26bfef commit cd7f798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmselfsup/models/algorithms/cae.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def forward_train(self, samples: Sequence, **kwargs) -> dict:
img, img_target, mask = samples

# normalize images and the images to get the target
img = self.img_norm(img)
img_list = [self.img_norm(x).unsqueeze(0) for x in img]
img = torch.cat(img_list)
img_target = 0.8 * img_target + 0.1

mask = mask.flatten(1).to(torch.bool)
Expand Down

0 comments on commit cd7f798

Please sign in to comment.