Update inference_realesrgan.py
Browse files- inference_realesrgan.py +1 -1
inference_realesrgan.py
CHANGED
|
@@ -15,7 +15,7 @@ if not os.path.exists(MODEL_PATH):
|
|
| 15 |
|
| 16 |
# 🚀 Fix: Manually load the ESRGAN model without requiring 'realesrgan' package
|
| 17 |
from torch.hub import load_state_dict_from_url
|
| 18 |
-
model_url = "https://
|
| 19 |
|
| 20 |
# Load weights if missing
|
| 21 |
if not os.path.exists(MODEL_PATH):
|
|
|
|
| 15 |
|
| 16 |
# 🚀 Fix: Manually load the ESRGAN model without requiring 'realesrgan' package
|
| 17 |
from torch.hub import load_state_dict_from_url
|
| 18 |
+
model_url = "https://huggingface.co/va1/CViT-Deepfake-Model/resolve/main/RealESRGAN_x4plus.pth"
|
| 19 |
|
| 20 |
# Load weights if missing
|
| 21 |
if not os.path.exists(MODEL_PATH):
|