-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathaudiosetdl-job-array.s
43 lines (37 loc) · 1.19 KB
/
audiosetdl-job-array.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
#SBATCH --job-name=audioset-dl-array
#SBATCH --nodes=1
#SBATCH --cpus-per-task=8
#SBATCH --mem=12GB
#SBATCH --time=7-0
#SBATCH --mail-type=ALL
##SBATCH [email protected]
#SBATCH --output="audioset-dl-%A-%a.out"
#SBATCH --err="audioset-dl-%A-%a.err"
SRCDIR=$HOME/audiosetdl
FFMPEG_PATH=$SRCDIR/bin/ffmpeg/ffmpeg
DATADIR=$SRCDIR/audioset
mkdir -p $DATADIR
module purge
source $SRCDIR/bin/miniconda/bin/activate
EVAL_PATH="$DATADIR/eval_segments.csv.$(printf '%02d' $SLURM_ARRAY_TASK_ID)";
BALANCED_TRAIN_PATH="$DATADIR/balanced_train_segments.csv.$(printf '%02d' $SLURM_ARRAY_TASK_ID)";
UNBALANCED_TRAIN_PATH="$DATADIR/unbalanced_train_segments.csv.$(printf '%02d' $SLURM_ARRAY_TASK_ID)";
python $SRCDIR/download_audioset.py \
-f $FFMPEG_PATH \
--eval $EVAL_PATH \
--balanced-train $BALANCED_TRAIN_PATH \
--unbalanced-train $UNBALANCED_TRAIN_PATH \
--audio-codec flac \
--audio-format flac \
--audio-sample-rate 48000 \
--audio-bit-depth 16 \
--video-codec h264 \
--video-format mp4 \
--video-frame-rate 30 \
--video-mode bestvideoaudio \
--num-workers 8 \
--num-retries 10 \
--no-logging \
--verbose \
$DATADIR