mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-26 03:41:57 -08:00
Remove a bunch of unused/vestigial code
As found by Vulture and some eyes
This commit is contained in:
parent
0895c2369c
commit
ba70a220e3
7 changed files with 0 additions and 89 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue