Commit
·
6b539a6
1
Parent(s):
f3842fa
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -21,7 +21,7 @@ class EndpointHandler():
|
|
| 21 |
self.pipe = self.pipe.to(device)
|
| 22 |
|
| 23 |
# Load the ESRGAN state dictionary
|
| 24 |
-
checkpoint = torch.load("
|
| 25 |
|
| 26 |
# Check if 'params_ema' is in the keys and filter the state_dict
|
| 27 |
if "params_ema" in checkpoint:
|
|
|
|
| 21 |
self.pipe = self.pipe.to(device)
|
| 22 |
|
| 23 |
# Load the ESRGAN state dictionary
|
| 24 |
+
checkpoint = torch.load("/repository/RealESRGAN_x4plus_anime_6B.pth")
|
| 25 |
|
| 26 |
# Check if 'params_ema' is in the keys and filter the state_dict
|
| 27 |
if "params_ema" in checkpoint:
|