Remove a bunch of unused/vestigial code

As found by Vulture and some eyes
This commit is contained in:
Aarni Koskela
2023-06-05 22:20:29 +03:00
parent 0895c2369c
commit ba70a220e3
7 changed files with 0 additions and 89 deletions

View File

@@ -15,7 +15,6 @@ model_dir = "Codeformer"
model_path = os.path.join(models_path, model_dir)
model_url = 'https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth'
have_codeformer = False
codeformer = None
@@ -125,9 +124,6 @@ def setup_model(dirname):
return restored_img
global have_codeformer
have_codeformer = True
global codeformer
codeformer = FaceRestorerCodeFormer(dirname)
shared.face_restorers.append(codeformer)