mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2025-11-02 20:34:02 +08:00
Revert "Merge pull request #829 from RishonLi/patch-1"
This reverts commit5f5fe8890a, reversing changes made toa9e8f27360.
This commit is contained in:
@@ -49,10 +49,7 @@ def get_face_enhancer() -> Any:
|
||||
with THREAD_LOCK:
|
||||
if FACE_ENHANCER is None:
|
||||
model_path = os.path.join(models_dir, 'GFPGANv1.4.pth')
|
||||
mps_device = None
|
||||
if torch.backends.mps.is_available():
|
||||
mps_device = torch.device("mps")
|
||||
FACE_ENHANCER = gfpgan.GFPGANer(model_path=model_path, upscale=1, device=mps_device) # type: ignore[attr-defined]
|
||||
FACE_ENHANCER = gfpgan.GFPGANer(model_path=model_path, upscale=1) # type: ignore[attr-defined]
|
||||
return FACE_ENHANCER
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user