Skip to content

Commit

Permalink
FIX: added working directory to other bash scripts and fixed docker i…
Browse files Browse the repository at this point in the history
…mage naming
  • Loading branch information
femke-sintef committed Oct 5, 2023
1 parent e608d3a commit 0afbd58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ Once the necessary files have been dowloaded, you can either pull the Docker ima

```bash
docker pull docker pull ghcr.io/ninanor/rare_species_detections:main
docker tag docker pull ghcr.io/ninanor/rare_species_detections:main dcase
docker tag docker pull ghcr.io/ninanor/rare_species_detections:main beats
```

Or create the Docker image from the Dockerfile located in our repository:

```bash
git clone https://github.com/NINAnor/rare_species_detections.git
cd rare_species_detections
docker build -t dcase -f Dockerfile .
docker build -t beats -f Dockerfile .
```

## Processing the data
Expand Down Expand Up @@ -89,7 +89,7 @@ Once the `eval_out.csv` has been created, it is possible to get the results for
docker run -v $CODE_DIR:/app \
-v $DATA_DIR:/data \
--gpus all \
dcase \
beats \
poetry run python evaluation/evaluation_metrics/evaluation.py \
-pred_file /data/eval_out.csv \
-ref_files_path /data/DCASE/Development_Set_annotations/Validation_Set \
Expand Down
3 changes: 2 additions & 1 deletion preprocess_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ declare -A SETS=( ["Training_Set"]="train" ["Validation_Set"]="validate" ["Evalu
for SET in "${!SETS[@]}"; do
STATUS=${SETS[$SET]}
docker run -v $DATA_DIR:/data \
-v $PWD:/app \
--gpus all \
dcase \
beats \
poetry run python /app/data_utils/DCASEfewshot.py \
--set_type $SET \
--status $STATUS
Expand Down
3 changes: 2 additions & 1 deletion test_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ N_DETECTED_SUPPORTS=${2:-0}
TOLERANCE=${3:-0}

docker run -v $BASE_DIR:/data \
-v $PWD:/app \
--gpus all \
dcase \
beats \
poetry run python /app/evaluate/evaluateDCASE.py \
--wav_save \
--overwrite \
Expand Down

0 comments on commit 0afbd58

Please sign in to comment.