mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-07 11:00:43 -08:00
Merge pull request #11046 from akx/ded-code
Remove a bunch of unused/vestigial code
This commit is contained in:
commit
1bf01b73f4
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
|
||||
|
||||
|
||||
|
|
@ -123,9 +122,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