Spaces:
Runtime error
Runtime error
ShaoTengLiu
commited on
Commit
·
498135d
1
Parent(s):
dd7de2d
fix bug
Browse files- .DS_Store +0 -0
- Video-P2P/tuneavideo/data/dataset.py +1 -1
- trainer.py +2 -2
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
Video-P2P/tuneavideo/data/dataset.py
CHANGED
@@ -34,7 +34,7 @@ class TuneAVideoDataset(Dataset):
|
|
34 |
for file in sorted(os.listdir(self.video_path), key=lambda x: int(x[:-4])):
|
35 |
if file.endswith('jpg'):
|
36 |
self.images.append(np.asarray(Image.open(os.path.join(self.video_path, file)).convert('RGB').resize((self.width, self.height))))
|
37 |
-
|
38 |
|
39 |
def __len__(self):
|
40 |
return 1
|
|
|
34 |
for file in sorted(os.listdir(self.video_path), key=lambda x: int(x[:-4])):
|
35 |
if file.endswith('jpg'):
|
36 |
self.images.append(np.asarray(Image.open(os.path.join(self.video_path, file)).convert('RGB').resize((self.width, self.height))))
|
37 |
+
self.images = np.stack(self.images)
|
38 |
|
39 |
def __len__(self):
|
40 |
return 1
|
trainer.py
CHANGED
@@ -137,9 +137,9 @@ class Trainer:
|
|
137 |
OmegaConf.save(config, f)
|
138 |
|
139 |
# command = f'accelerate launch Tune-A-Video/train_tuneavideo.py --config {config_path}'
|
140 |
-
|
141 |
# command = f'accelerate launch Video-P2P/train_tuneavideo.py --config {config_path}'
|
142 |
-
command = f'accelerate launch Tune-A-Video-debug/train_tuneavideo.py --config {config_path}'
|
143 |
subprocess.run(shlex.split(command))
|
144 |
save_model_card(save_dir=output_dir,
|
145 |
base_model=base_model,
|
|
|
137 |
OmegaConf.save(config, f)
|
138 |
|
139 |
# command = f'accelerate launch Tune-A-Video/train_tuneavideo.py --config {config_path}'
|
140 |
+
command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
141 |
# command = f'accelerate launch Video-P2P/train_tuneavideo.py --config {config_path}'
|
142 |
+
# command = f'accelerate launch Tune-A-Video-debug/train_tuneavideo.py --config {config_path}'
|
143 |
subprocess.run(shlex.split(command))
|
144 |
save_model_card(save_dir=output_dir,
|
145 |
base_model=base_model,
|