Skip to content

Commit

Permalink
briaai/RMBG-1.4 always run on cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanster committed Feb 10, 2024
1 parent 893fd11 commit 1cd36cb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions iopaint/plugins/briarmbg.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,6 @@ def briarmbg_process(bgr_np_image, session, only_mask=False):
im_tensor = torch.unsqueeze(im_tensor, 0)
im_tensor = torch.divide(im_tensor, 255.0)
im_tensor = normalize(im_tensor, [0.5, 0.5, 0.5], [1.0, 1.0, 1.0])
if torch.cuda.is_available():
im_tensor = im_tensor.cuda()

# inference
result = session(im_tensor)
# post process
Expand Down

0 comments on commit 1cd36cb

Please sign in to comment.