Skip to content
Snippets Groups Projects
Commit e7d0f60d authored by Alex Lee's avatar Alex Lee
Browse files

Python 2 compatibility of preprocessing script.

parent 72f1f337
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# exit if any command fails
set -e
if [ "$#" -ne 1 ]; then
echo "Usage: $0 DATASET_NAME" >&2
exit 1
......
......@@ -117,8 +117,7 @@ def main():
for partition_name, partition_fnames in zip(partition_names, partition_fnames):
partition_dir = os.path.join(args.output_dir, partition_name)
if not os.path.exists(partition_dir):
os.makedirs(partition_dir, exist_ok=True)
os.makedirs(partition_dir)
read_videos_and_save_tf_records(partition_dir, partition_fnames)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment