Skip to content

Commit

Permalink
Merge pull request #137 from ya0guang/patch-1
Browse files Browse the repository at this point in the history
Seems like the `tmpLbl` variable is misused as
  • Loading branch information
nadermx committed Apr 12, 2024
2 parents 123d444 + 9eb676a commit 7d1aaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backgroundremover/u2net/data_loader.py
Expand Up @@ -139,7 +139,7 @@ def __call__(self, sample):
# change the r,g,b to b,r,g from [0,255] to [0,1]
# transforms.Normalize(mean = (0.485, 0.456, 0.406), std = (0.229, 0.224, 0.225))
tmpImg = tmpImg.transpose((2, 0, 1))
tmpLbl = label.transpose((2, 0, 1))
tmpLbl = tmpLbl.transpose((2, 0, 1))

return {
"imidx": torch.from_numpy(imidx),
Expand Down

0 comments on commit 7d1aaf0

Please sign in to comment.