Package: vwiz
vwiz ðŸ§™vwiz :: video wizard ðŸ§™Python tool to work with video datasets.Convert videos to frames and create the relevant csv filesCreate hdf5 datasetsSplit datasets into train, validate and testInstallationUsingpippipinstallvwizUsinggitClone the vid2frame repo from Github and navigate to the cloned directorygitclonehttps://github.com/nzx9/vwiz.gitcdvwizCreate virtual environmentpython-mvenvvenv# For Windowspython3-mvenvvenv# For Linux/ OSxActivate venvvenv\Script\activate# For Windowssourcevenv/bin/activate# For Linux/ OSxInstall requirementspython-mpipinstall-rrequirements.txtRunpython app.py --helpUsagepositional arguments:
  {v2f,h5,split}  vid2frames commands
    v2f           Convert videos to frames
    h5            Create hdf5 datasets from the converted frames
    split         Split CSV file into train, test, and val sets

options:
  -h, --help      show this help message and exitv2fv2f can be used to split video files into framesusage: app.py v2f [-h] -D ROOT_DIR -F FRAMES -E EXTENSION -C CSV [-O OUT_DIR]
                  [-V [VERBOSE]] [-FF [FORCE]]

options:
  -h, --help            show this help message and exit
  -D ROOT_DIR, --root_dir ROOT_DIR
                        Root directory of the video files
  -F FRAMES, --frames FRAMES
                        No of frames from the video
  -E EXTENSION, --extension EXTENSION
                        File extention of the input video files
  -C CSV, --csv CSV     Path to create csv file
  -O OUT_DIR, --out_dir OUT_DIR
                        Output location to save the frames, default is
                        'outputs'
  -V [VERBOSE], --verbose [VERBOSE]
                        Print verbose data
  -FF [FORCE], --force [FORCE]
                        force frame splitter to use frames given to --frames
                        or else it will use the best fps to automatically
                        decide number of frames. Not setting this will return
                        different number of frames than the given --framesh5h5 can be used create hdf5 datasetsusage: app.py h5 [-h] -D ROOT_DIR -G GROUPS [-MS MISS_FRAMES_START]
                 [-ME MISS_FRAMES_END] -OP OUTPUT_PATH -ON OUTPUT_NAME

options:
  -h, --help            show this help message and exit
  -D ROOT_DIR, --root_dir ROOT_DIR
                        Path to the converted frames
  -G GROUPS, --groups GROUPS
                        Groups need to create in hdf5 dataset
  -MS MISS_FRAMES_START, --miss_frames_start MISS_FRAMES_START
                        No of frames to miss from start
  -ME MISS_FRAMES_END, --miss_frames_end MISS_FRAMES_END
                        No of frames to miss from end
  -OP OUTPUT_PATH, --output_path OUTPUT_PATH
                        Path to save output
  -ON OUTPUT_NAME, --output_name OUTPUT_NAME
                        Name to save outputsplitsplit can be used to split datasets into train, validation and test datasetsusage: app.py split [-h] -C CSV -T TRAIN_RATIO [-V VALIDATE_RATIO]
                    [-S [SHUFFLE]] [-H [INCLUDE_HEADER]] [-D SAVE_DIR]
                    [-P POSTFIX]

options:
  -h, --help            show this help message and exit
  -C CSV, --csv CSV     csv file to split
  -T TRAIN_RATIO, --train_ratio TRAIN_RATIO
                        Ratio to split train set
  -V VALIDATE_RATIO, --validate_ratio VALIDATE_RATIO
                        Ratio to split validation set. if not given, test set
                        will be empty and if --train_ratio is less than 1
                        validate_ratio will be calculate automatically
  -S [SHUFFLE], --shuffle [SHUFFLE]
                        Shuffle the data before splitting
  -H [INCLUDE_HEADER], --include_header [INCLUDE_HEADER]
                        Include header to the splitting process
  -D SAVE_DIR, --save_dir SAVE_DIR
                        Save output csv files to this directory
  -P POSTFIX, --postfix POSTFIX
                        Add postfix text to output csv filename's end