Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wileewang committed Mar 31, 2024
1 parent b94e94f commit 2910581
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,18 +547,9 @@ def main(config):
)
accelerator.end_training()

# if __name__ == "__main__":
# parser = argparse.ArgumentParser()
# parser.add_argument("--config", type=str, default='/remote-home/lzwang/projects/MotionInversion/configs/config.yaml')
# args = parser.parse_args()

# # Load and merge configurations
# config = OmegaConf.load(args.config)
# main(config)

if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--config", type=str, default='/remote-home/lzwang/projects/MotionInversion/configs/config.yaml')
parser.add_argument("--config", type=str, default='./configs/config.yaml')
parser.add_argument("--single_video_path", type=str)
parser.add_argument("--prompts", type=str, help="JSON string of prompts")
args = parser.parse_args()
Expand All @@ -575,6 +566,4 @@ def main(config):
if args.prompts:
config.val.prompt = json.loads(args.prompts)



main(config)

0 comments on commit 2910581

Please sign in to comment.