multimodalart HF staff commited on
Commit
ccf17f5
1 Parent(s): 2e8ed6c

modified training script

Browse files
Files changed (1) hide show
  1. train_dreambooth.py +4 -3
train_dreambooth.py CHANGED
@@ -389,8 +389,8 @@ def get_full_repo_name(model_id: str, organization: Optional[str] = None, token:
389
  return f"{organization}/{model_id}"
390
 
391
 
392
- def main():
393
- args = parse_args()
394
  logging_dir = Path(args.output_dir, args.logging_dir)
395
  i=args.save_starting_step
396
  accelerator = Accelerator(
@@ -784,4 +784,5 @@ def main():
784
  accelerator.end_training()
785
 
786
  if __name__ == "__main__":
787
- main()
 
 
389
  return f"{organization}/{model_id}"
390
 
391
 
392
+ def run_training(args):
393
+ #args = parse_args()
394
  logging_dir = Path(args.output_dir, args.logging_dir)
395
  i=args.save_starting_step
396
  accelerator = Accelerator(
 
784
  accelerator.end_training()
785
 
786
  if __name__ == "__main__":
787
+ pass
788
+ #main()