Spaces:
Runtime error
Runtime error
ShaoTengLiu
commited on
Commit
·
ee6342a
1
Parent(s):
1276ecf
debug
Browse files- Video-P2P/run_videop2p.py +2 -2
- trainer.py +3 -3
Video-P2P/run_videop2p.py
CHANGED
@@ -104,11 +104,11 @@ def main(
|
|
104 |
mask_th = (.3, .3)
|
105 |
|
106 |
|
107 |
-
pretrained_model_path =
|
108 |
image_path = train_data['video_path']
|
109 |
prompt = train_data['prompt']
|
110 |
# prompts = [prompt, ]
|
111 |
-
output_folder = os.path.join(
|
112 |
if fast:
|
113 |
save_name_1 = os.path.join(output_folder, 'inversion_fast.gif')
|
114 |
save_name_2 = os.path.join(output_folder, '{}_fast.gif'.format(save_name))
|
|
|
104 |
mask_th = (.3, .3)
|
105 |
|
106 |
|
107 |
+
pretrained_model_path = pretrained_model_path
|
108 |
image_path = train_data['video_path']
|
109 |
prompt = train_data['prompt']
|
110 |
# prompts = [prompt, ]
|
111 |
+
output_folder = os.path.join(output_dir, 'results')
|
112 |
if fast:
|
113 |
save_name_1 = os.path.join(output_folder, 'inversion_fast.gif')
|
114 |
save_name_2 = os.path.join(output_folder, '{}_fast.gif'.format(save_name))
|
trainer.py
CHANGED
@@ -145,9 +145,9 @@ class Trainer:
|
|
145 |
with open(config_path, 'w') as f:
|
146 |
OmegaConf.save(config, f)
|
147 |
|
148 |
-
command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
149 |
-
subprocess.run(shlex.split(command))
|
150 |
-
torch.cuda.empty_cache()
|
151 |
command = f'python Video-P2P/run_videop2p.py --config {config_path}'
|
152 |
subprocess.run(shlex.split(command))
|
153 |
save_model_card(save_dir=output_dir,
|
|
|
145 |
with open(config_path, 'w') as f:
|
146 |
OmegaConf.save(config, f)
|
147 |
|
148 |
+
# command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
149 |
+
# subprocess.run(shlex.split(command))
|
150 |
+
# torch.cuda.empty_cache()
|
151 |
command = f'python Video-P2P/run_videop2p.py --config {config_path}'
|
152 |
subprocess.run(shlex.split(command))
|
153 |
save_model_card(save_dir=output_dir,
|