ilovesora2/opensora-v21 / scripts /make_manifest_template.py
ilovesora2's picture
download
raw
471 Bytes
#!/usr/bin/env python3
"""Create a CSV template for real training videos."""
import argparse, csv
from pathlib import Path
ap=argparse.ArgumentParser()
ap.add_argument('--output', default='train.csv')
ap.parse_args()
args=ap.parse_args()
fields=['path','text','num_frames','height','width','aspect_ratio','resolution','fps']
with open(args.output,'w',newline='',encoding='utf-8') as f:
csv.writer(f).writerow(fields)
print(f'Created {Path(args.output).resolve()}')

Xet Storage Details

Size:
471 Bytes
·
Xet hash:
d86483f0d7471b78a48d6bc33ea25edd1408bb45b8fcee4bc209d81c9ebce3ae

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.