to-be commited on
Commit
bec15b6
1 Parent(s): c5e4e29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.pt')
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)