Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def set_safmn(upscale):
|
|
40 |
else:
|
41 |
raise NotImplementedError('Only support x2/x4 upscaling!')
|
42 |
|
43 |
-
model.load_state_dict(torch.load(model_path)['params'], strict=True)
|
44 |
model.eval()
|
45 |
return model.to(device)
|
46 |
|
|
|
40 |
else:
|
41 |
raise NotImplementedError('Only support x2/x4 upscaling!')
|
42 |
|
43 |
+
model.load_state_dict(torch.load(model_path, weights_only=True)['params'], strict=True)
|
44 |
model.eval()
|
45 |
return model.to(device)
|
46 |
|