Spaces:
Runtime error
Runtime error
waveydaveygravy
commited on
Commit
•
749c1ac
1
Parent(s):
6bc67da
Update face_enhancer.py
Browse files- face_enhancer.py +5 -5
face_enhancer.py
CHANGED
@@ -22,11 +22,11 @@ def codeformer_runner(img, model):
|
|
22 |
|
23 |
|
24 |
supported_enhancers = {
|
25 |
-
"CodeFormer": ("
|
26 |
-
"GFPGAN": ("
|
27 |
-
"REAL-ESRGAN 2x": ("
|
28 |
-
"REAL-ESRGAN 4x": ("
|
29 |
-
"REAL-ESRGAN 8x": ("
|
30 |
}
|
31 |
|
32 |
cv2_interpolations = ["LANCZOS4", "CUBIC", "NEAREST"]
|
|
|
22 |
|
23 |
|
24 |
supported_enhancers = {
|
25 |
+
"CodeFormer": ("/content/AniPortrait_official/pretrained_model/codeformer.onnx", codeformer_runner),
|
26 |
+
"GFPGAN": ("/content/AniPortrait_official/pretrained_model/GFPGANv1.4.pth", gfpgan_runner),
|
27 |
+
"REAL-ESRGAN 2x": ("/content/AniPortrait_official/pretrained_model/RealESRGAN_x2.pth", realesrgan_runner),
|
28 |
+
"REAL-ESRGAN 4x": ("/content/AniPortrait_official/pretrained_model/RealESRGAN_x4.pth", realesrgan_runner),
|
29 |
+
"REAL-ESRGAN 8x": ("/content/AniPortrait_official/pretrained_model/RealESRGAN_x8.pth", realesrgan_runner)
|
30 |
}
|
31 |
|
32 |
cv2_interpolations = ["LANCZOS4", "CUBIC", "NEAREST"]
|