ShaoTengLiu commited on
Commit
7c1d69c
1 Parent(s): 58be882
Files changed (1) hide show
  1. trainer.py +3 -1
trainer.py CHANGED
@@ -103,8 +103,9 @@ class Trainer:
103
  self.join_model_library_org(
104
  self.hf_token if self.hf_token else input_token)
105
 
 
106
  # config = OmegaConf.load('Video-P2P/configs/man-surfing-tune.yaml')
107
- config = OmegaConf.load('Video-P2P/configs/man-surfing.yaml')
108
  config.pretrained_model_path = self.download_base_model(base_model)
109
  config.output_dir = output_dir.as_posix()
110
  config.train_data.video_path = training_video.name # type: ignore
@@ -134,6 +135,7 @@ class Trainer:
134
  with open(config_path, 'w') as f:
135
  OmegaConf.save(config, f)
136
 
 
137
  # command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
138
  command = f'accelerate launch Tune-A-Video-debug/train_tuneavideo.py --config {config_path}'
139
  subprocess.run(shlex.split(command))
 
103
  self.join_model_library_org(
104
  self.hf_token if self.hf_token else input_token)
105
 
106
+ # config = OmegaConf.load('Tune-A-Video/configs/man-surfing.yaml')
107
  # config = OmegaConf.load('Video-P2P/configs/man-surfing-tune.yaml')
108
+ config = OmegaConf.load('Tune-A-Video-debug/configs/man-surfing.yaml')
109
  config.pretrained_model_path = self.download_base_model(base_model)
110
  config.output_dir = output_dir.as_posix()
111
  config.train_data.video_path = training_video.name # type: ignore
 
135
  with open(config_path, 'w') as f:
136
  OmegaConf.save(config, f)
137
 
138
+ # command = f'accelerate launch Tune-A-Video/train_tuneavideo.py --config {config_path}'
139
  # command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
140
  command = f'accelerate launch Tune-A-Video-debug/train_tuneavideo.py --config {config_path}'
141
  subprocess.run(shlex.split(command))