Spaces:
Runtime error
Runtime error
ShaoTengLiu
commited on
Commit
·
71614b8
1
Parent(s):
1cb73da
update
Browse files- Video-P2P/run_videop2p.py +4 -3
- trainer.py +1 -1
Video-P2P/run_videop2p.py
CHANGED
@@ -87,7 +87,7 @@ def main(
|
|
87 |
cross_replace_steps: float = 0.2,
|
88 |
self_replace_steps: float = 0.5,
|
89 |
video_len: int = 8,
|
90 |
-
fast: bool =
|
91 |
mixed_precision_p2p: str = 'fp32',
|
92 |
):
|
93 |
|
@@ -695,7 +695,8 @@ def main(
|
|
695 |
if __name__ == "__main__":
|
696 |
parser = argparse.ArgumentParser()
|
697 |
parser.add_argument("--config", type=str, default="./configs/tuneavideo.yaml")
|
698 |
-
parser.add_argument("--fast", action='store_true')
|
699 |
args = parser.parse_args()
|
700 |
|
701 |
-
main(**OmegaConf.load(args.config), fast=args.fast)
|
|
|
|
87 |
cross_replace_steps: float = 0.2,
|
88 |
self_replace_steps: float = 0.5,
|
89 |
video_len: int = 8,
|
90 |
+
fast: bool = True,
|
91 |
mixed_precision_p2p: str = 'fp32',
|
92 |
):
|
93 |
|
|
|
695 |
if __name__ == "__main__":
|
696 |
parser = argparse.ArgumentParser()
|
697 |
parser.add_argument("--config", type=str, default="./configs/tuneavideo.yaml")
|
698 |
+
# parser.add_argument("--fast", action='store_true')
|
699 |
args = parser.parse_args()
|
700 |
|
701 |
+
# main(**OmegaConf.load(args.config), fast=args.fast)
|
702 |
+
main(**OmegaConf.load(args.config))
|
trainer.py
CHANGED
@@ -147,7 +147,7 @@ class Trainer:
|
|
147 |
|
148 |
command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
149 |
subprocess.run(shlex.split(command))
|
150 |
-
command = f'python Video-P2P/run_videop2p.py --config {config_path}
|
151 |
subprocess.run(shlex.split(command))
|
152 |
save_model_card(save_dir=output_dir,
|
153 |
base_model=base_model,
|
|
|
147 |
|
148 |
command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
149 |
subprocess.run(shlex.split(command))
|
150 |
+
command = f'python Video-P2P/run_videop2p.py --config {config_path}'
|
151 |
subprocess.run(shlex.split(command))
|
152 |
save_model_card(save_dir=output_dir,
|
153 |
base_model=base_model,
|