Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def inference(img, task, run_on):
|
|
46 |
load_arch = run_path('restormer_arch.py')
|
47 |
model = load_arch['Restormer'](**parameters)
|
48 |
|
49 |
-
checkpoint = torch.load('deshabby.
|
50 |
model.load_state_dict(checkpoint['params'])
|
51 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
52 |
model = model.to(device)
|
|
|
46 |
load_arch = run_path('restormer_arch.py')
|
47 |
model = load_arch['Restormer'](**parameters)
|
48 |
|
49 |
+
checkpoint = torch.load('deshabby.pth')
|
50 |
model.load_state_dict(checkpoint['params'])
|
51 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
52 |
model = model.to(device)
|