File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 426426
427427@dataclass
428428class Arguments :
429+ total_params : Optional [int ] = None
429430 only_save_last_checkpoint : bool = False
430431 validation_image_scale : float = 1.0
431432 no_center_crop : bool = False
@@ -493,7 +494,6 @@ class Arguments:
493494 debug : bool = False
494495 config_path : Optional [str ] = None
495496 attention_type : str = "flash"
496- total_params : Optional [int ] = None
497497
498498
499499def main ():
@@ -714,7 +714,7 @@ def main():
714714
715715 # load the maskgit transformer from disk if we have previously trained one
716716 with accelerator .main_process_first ():
717- if args .resume_path :
717+ if args .resume_path is not None and len ( args . resume_path ) > 1 :
718718 load = True
719719
720720 accelerator .print ("Loading Muse MaskGit..." )
You can’t perform that action at this time.
0 commit comments