Spaces:
Running
Running
Update face_enhancement.py
Browse files- face_enhancement.py +1 -1
face_enhancement.py
CHANGED
@@ -18,7 +18,7 @@ class FaceEnhancement(object):
|
|
18 |
def __init__(self, base_dir='./', size=512, out_size=None, model=None, channel_multiplier=2, narrow=1, key=None, device='cpu'):
|
19 |
self.facedetector = RetinaFaceDetection(base_dir, device)
|
20 |
self.facegan = FaceGAN(base_dir, size, out_size, model, channel_multiplier, narrow, key, device=device)
|
21 |
-
self.srmodel = RealESRNet(base_dir,
|
22 |
self.size = size
|
23 |
self.out_size = size if out_size==None else out_size
|
24 |
self.threshold = 0.9
|
|
|
18 |
def __init__(self, base_dir='./', size=512, out_size=None, model=None, channel_multiplier=2, narrow=1, key=None, device='cpu'):
|
19 |
self.facedetector = RetinaFaceDetection(base_dir, device)
|
20 |
self.facegan = FaceGAN(base_dir, size, out_size, model, channel_multiplier, narrow, key, device=device)
|
21 |
+
self.srmodel = RealESRNet(base_dir, 'realesrnet', 2, 0, device=device)
|
22 |
self.size = size
|
23 |
self.out_size = size if out_size==None else out_size
|
24 |
self.threshold = 0.9
|