-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3d3dec
commit e2da292
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
DATA_DIR=$1 # Path where DCASE data have been stored (i.e. $BASE_FOLDER in dcase_setup.sh) | ||
|
||
# Declare an associative array (key-value pairs) | ||
declare -A SETS=( ["Training_Set"]="train" ["Validation_Set"]="validate" ["Evaluation_Set"]="test" ) | ||
|
||
# Loop through the associative array | ||
for SET in "${!SETS[@]}"; do | ||
STATUS=${SETS[$SET]} | ||
docker run -v $DATA_DIR:/data \ | ||
--gpus all \ | ||
dcase \ | ||
poetry run python /app/data_utils/DCASEfewshot.py \ | ||
--set_type $SET \ | ||
--status $STATUS \ | ||
--overwrite \ | ||
--resample \ | ||
--denoise \ | ||
--normalize \ | ||
--tensor_length 128 \ | ||
--overlap 0.5 | ||
done |