Bug Fix Patch

This commit is contained in:
blessedcoolant 2022-09-21 19:00:19 +12:00 committed by Lincoln Stein
parent 069f91f930
commit 8c751d342d

View File

@ -47,7 +47,7 @@ def main():
# Loading Face Restoration and ESRGAN Modules
try:
gfpgan, codeformer, esrgan = None, None, None
from ldm.dream.restoration import Restoration
from ldm.dream.restoration.base import Restoration
restoration = Restoration(opt.gfpgan_dir, opt.gfpgan_model_path, opt.esrgan_bg_tile)
if opt.restore:
gfpgan, codeformer = restoration.load_face_restore_models()