Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

merge

pxybd20d1f3a7a2
diff --cc tools/scene_cut/cut.py
index c5eebf3,9b5212b..94aaf92
--- a/tools/scene_cut/cut.py
+++ b/tools/scene_cut/cut.py
@@@ -162,13 -172,13 +175,14 @@@ def main()
# create logger
logger = None
+ os.makedirs(args.save_dir, exist_ok=True)
# initialize pandarallel
- if args.num_workers is not None:
- pandarallel.initialize(progress_bar=True, nb_workers=args.num_workers)
- else:
- pandarallel.initialize(progress_bar=True)
+ if not args.disable_parallel:
+ if args.num_workers is not None:
+ pandarallel.initialize(progress_bar=True, nb_workers=args.num_workers)
+ else:
+ pandarallel.initialize(progress_bar=True)
process_single_row_partial = partial(process_single_row, args=args)
# process