Merge pull request #31 from damian0815/patch-1

fix `'int' object is not callable` warning
This commit is contained in:
Victor Hall 2023-01-25 09:29:31 -08:00 committed by GitHub
commit b4847d6f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ def main(args):
tokenizer = CLIPTokenizer.from_pretrained(model_root_folder, subfolder="tokenizer", use_fast=False)
except Exception as e:
traceback.print_exc()
logging.ERROR(" * Failed to load checkpoint *")
logging.error(" * Failed to load checkpoint *")
if args.gradient_checkpointing:
unet.enable_gradient_checkpointing()