Merge branch 'main' into 2.3.0rc4

This commit is contained in:
Lincoln Stein 2023-02-05 10:54:53 -05:00 committed by GitHub
commit 15996446e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -71,6 +71,8 @@ def main():
# when the frozen CLIP tokenizer is imported
import transformers
transformers.logging.set_verbosity_error()
import diffusers
diffusers.logging.set_verbosity_error()
# Loading Face Restoration and ESRGAN Modules
gfpgan,codeformer,esrgan = load_face_restoration(opt)

View File

@ -194,7 +194,8 @@ class Inpaint(Img2Img):
"""
self.enable_image_debugging = enable_image_debugging
self.infill_method = infill_method or infill_methods()[0], # The infill method to use
infill_method = infill_method or infill_methods()[0]
self.infill_method = infill_method
self.inpaint_width = inpaint_width
self.inpaint_height = inpaint_height