mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
fix installer and requirements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
import modules.face_restoration
|
||||
from installer import install
|
||||
from modules import paths, shared, devices, modelloader, errors
|
||||
|
||||
model_dir = "GFPGAN"
|
||||
@@ -72,8 +72,11 @@ def setup_model(dirname):
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
install('basicsr')
|
||||
install('gfpgan')
|
||||
import gfpgan
|
||||
import facexlib
|
||||
import modules.face_restoration
|
||||
|
||||
global user_path # pylint: disable=global-statement
|
||||
global have_gfpgan # pylint: disable=global-statement
|
||||
|
||||
Reference in New Issue
Block a user