OriLib commited on
Commit
bbcb26d
·
verified ·
1 Parent(s): cfc1b95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -13,6 +13,7 @@ from typing import Tuple
13
  net = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  net.to(device)
 
16
 
17
 
18
  def resize_image(image):
 
13
  net = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  net.to(device)
16
+ net.eval()
17
 
18
 
19
  def resize_image(image):