Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
•
46ebb47
1
Parent(s):
40aa511
update
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ from typing import Tuple
|
|
12 |
|
13 |
net=BriaRMBG()
|
14 |
# model_path = "./model1.pth"
|
15 |
-
model_path = hf_hub_download("briaai/RMBG-1.4", 'model.pth')
|
|
|
16 |
if torch.cuda.is_available():
|
17 |
net.load_state_dict(torch.load(model_path))
|
18 |
net=net.cuda()
|
|
|
12 |
|
13 |
net=BriaRMBG()
|
14 |
# model_path = "./model1.pth"
|
15 |
+
#model_path = hf_hub_download("briaai/RMBG-1.4", 'model.pth')
|
16 |
+
model_path = hf_hub_download("cocktailpeanut/gbmr", 'model.pth')
|
17 |
if torch.cuda.is_available():
|
18 |
net.load_state_dict(torch.load(model_path))
|
19 |
net=net.cuda()
|