Skip to content

Commit

Permalink
Some small QOL improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool940711 committed Aug 1, 2023
1 parent f1cf70c commit 9477603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train_muse_maskgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@

@dataclass
class Arguments:
total_params: Optional[int] = None
only_save_last_checkpoint: bool = False
validation_image_scale: float = 1.0
no_center_crop: bool = False
Expand Down Expand Up @@ -493,7 +494,6 @@ class Arguments:
debug: bool = False
config_path: Optional[str] = None
attention_type: str = "flash"
total_params: Optional[int] = None


def main():
Expand Down Expand Up @@ -714,7 +714,7 @@ def main():

# load the maskgit transformer from disk if we have previously trained one
with accelerator.main_process_first():
if args.resume_path:
if args.resume_path is not None and len(args.resume_path) > 1:
load = True

accelerator.print("Loading Muse MaskGit...")
Expand Down

0 comments on commit 9477603

Please sign in to comment.