Skip to content

Latest commit

 

History

History
executable file
·
36 lines (26 loc) · 822 Bytes

README.md

File metadata and controls

executable file
·
36 lines (26 loc) · 822 Bytes

Data Sampler Rewrite

Installation

  1. Clone the repository:

    git clone https://github.com/Elias2660/VideoSamplerRewrite.git
    cd VideoSamplerRewrite
  2. Install the required packages:

    pip install -r requirements.txt

Usage

To prepare the dataset, run:

cd .. # into the working directory
python Dataprep.py --dataset_path <path-to-dataset> --dataset_name <dataset-name> --number_of_samples_max <max-samples> --max_workers <number-of-workers> --frames_per_sample <frames-per-sample>To write data

to write data to the dataset, run:

python WriteToDataset.py

To run in sbatch, go out to the data directory and run:

sbatch -x /[servers that are currently running] VideoSamplerRewrite/RunDataPrep.sh

Edit that file with the recommended settings.