SerdarHelli
commited on
Commit
·
1ecf700
1
Parent(s):
e164917
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ model = smp.Unet(
|
|
95 |
device='cuda' if torch.cuda.is_available() else 'cpu'
|
96 |
map_location=torch.device(device)
|
97 |
|
98 |
-
state_dict = torch.load("
|
99 |
|
100 |
|
101 |
|
|
|
95 |
device='cuda' if torch.cuda.is_available() else 'cpu'
|
96 |
map_location=torch.device(device)
|
97 |
|
98 |
+
state_dict = torch.load("srx50-f0.pth",map_location=map_location)["state_dict"]
|
99 |
|
100 |
|
101 |
|