Skip to content

Commit

Permalink
Merge pull request #4 from fAIseh00d/main
Browse files Browse the repository at this point in the history
Fix output mask redundant dims
  • Loading branch information
lldacing authored Oct 1, 2024
2 parents e3a7de4 + 09bb745 commit 9108de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birefnetNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def rem_bg(self, model, images):
image = apply_mask_to_image(image.cpu(), mask.cpu())

_images.append(image)
_masks.append(mask)
_masks.append(mask.squeeze(0))

out_images = torch.cat(_images, dim=0)
out_masks = torch.cat(_masks, dim=0)
Expand Down

0 comments on commit 9108de9

Please sign in to comment.