Skip to content

Commit

Permalink
Revert fix for batch size 1
Browse files Browse the repository at this point in the history
  • Loading branch information
fAIseh00d committed Oct 1, 2024
1 parent 03ff6c2 commit 09bb745
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions birefnetNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ def rem_bg(self, model, images):
out_images = torch.cat(_images, dim=0)
out_masks = torch.cat(_masks, dim=0)

if out_masks.shape[0] == 1:
out_masks = out_masks.squeeze(0)

return out_images, out_masks


Expand Down

0 comments on commit 09bb745

Please sign in to comment.