fix `'int' object is not callable` warning

This commit is contained in:
Damian Stewart 2023-01-25 11:06:52 +01:00 committed by GitHub
parent 09347779be
commit 448848d5c2
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()