charbel-malo
commited on
Commit
•
49aa16b
1
Parent(s):
42a6712
Update face_enhancer.py
Browse files- face_enhancer.py +0 -1
face_enhancer.py
CHANGED
@@ -44,7 +44,6 @@ def get_available_enhancer_names():
|
|
44 |
return available
|
45 |
|
46 |
|
47 |
-
@spaces.GPU(enable_queue=True)
|
48 |
def load_face_enhancer_model(name='GFPGAN', device=torch.device('cuda' if torch.cuda.is_available() else 'cpu')):
|
49 |
assert name in get_available_enhancer_names() + cv2_interpolations, f"Face enhancer {name} unavailable."
|
50 |
if name in supported_enhancers.keys():
|
|
|
44 |
return available
|
45 |
|
46 |
|
|
|
47 |
def load_face_enhancer_model(name='GFPGAN', device=torch.device('cuda' if torch.cuda.is_available() else 'cpu')):
|
48 |
assert name in get_available_enhancer_names() + cv2_interpolations, f"Face enhancer {name} unavailable."
|
49 |
if name in supported_enhancers.keys():
|