Spaces:
Running
Running
Update app.py
Browse files
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):
|