Commit a2f11900 authored by kinuthia's avatar kinuthia
Browse files

Merge branch 'main' into ericsson/test-linux-runner

parents 6547357c d701c031
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@ venv/
*.bs
*.192
mc.double
proc_input/*.wav
proc_input/*.pcm
proc_output/
experiments/selection/*/proc_input/*.wav
experiments/selection/*/proc_input/*.pcm
experiments/selection/*/proc_output/
*~
tests/tmp_output_*
tests/cut
+16 −1
Original line number Diff line number Diff line
@@ -142,6 +142,9 @@ postprocessing:
# master_seed: 5
### Additional seed to specify number of preruns (used for background noise delay and FER bitstream processing); default = 0
# prerun_seed: 2
### flag for linux to use windows-built binaries with wine: default = false
### this requires the wine binary to be available and will be ignored on windows
# use_windows_codec_binaries: true

### Any relative paths will be interpreted relative to the working directory the script is called from!
### Usage of absolute paths is recommended.
@@ -172,6 +175,10 @@ output_path: "./tmp_output"
### searches for the specified substring in found filenames; default = null
# input_select:
#  - "48kHz"

### Include the condition number in the item name; default = false
### for e.g. abcxyz.wav --> abcxyz.cXX.wav
# condition_in_output_filename: true
```

</details>
@@ -253,6 +260,8 @@ input:
        # background_noise_path: ".../noise.wav"
        ### Flag for using low level [-4,+4] background noise; default = false
        # low_level_noise: true
	### Flag for repeating the whole signal once and discarding the first half after processing
    # repeat_signal: true
```

</details>
@@ -677,6 +686,12 @@ ISM

---

# audiotools CLI for format conversion and rendering
# Audiotools CLI for format conversion and rendering

Please refer to [the notebook](./examples/audiotools.ipynb) for an overview.

# Selection test experiments

The folder `experiments/selection` contains a directory skeleton for processing items for the various selection test experiments including the config files. E.g. for processing the items for BS1534-1a, the input files need to be put into `experiments/selection/BS1534-1a/proc_input`, then execute `python3 -m ivas_processing_scripts experiments/selection/BS1534-1a/config/BS1534-1a.yml`. The output files will be in `experiments/selection/BS1534-1a/proc_output`, in subfolders per conditions.

Note that for P800 experiments, there are separate configs per category as different background noises need to be specified. Thus, there are several config files with `-catX` suffix available. The background noise files need to be put into `experiments/selection/P800-X/background_noise`. To generate all categories, there is a convenience script `create_items_p800.py` in the repository root folder.
 No newline at end of file

create_items_p800.py

0 → 100644
+33 −0
Original line number Diff line number Diff line
#! /usr/bin/env python3
import argparse
from pathlib import Path

from ivas_processing_scripts import main as generate_test
from ivas_processing_scripts.utils import apply_func_parallel

P800_TESTS = [f"P800-{i}" for i in range(1, 8)]


class Arguments:
    def __init__(self, config):
        self.config = config
        self.debug = False
        # used to overwrite the multiprocessing key in the configs to rather parallelize on category level
        self.multiprocessing = False


def create_items(testname):
    p800_path = Path(f"experiments/selection/{testname}")
    p800_cfgs = p800_path.joinpath("config").glob("P800*cat*.yml")

    args = [Arguments(str(cfg)) for cfg in p800_cfgs]
    apply_func_parallel(generate_test, zip( args ), type="mp")


# if is necessary here so that multiprocessing does not crash
if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("testname", choices=P800_TESTS)
    args = parser.parse_args()

    create_items(args.testname)
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@
# master_seed: 5
### Additional seed to specify number of preruns (used for background noise delay and FER bitstream processing); default = 0
# prerun_seed: 2
### flag for linux to use windows-built binaries with wine: default = false
### this requires the wine binary to be available and will be ignored on windows
# use_windows_codec_binaries: true

### Any relative paths will be interpreted relative to the working directory the script is called from!
### Usage of absolute paths is recommended.
@@ -117,6 +120,8 @@ input:
        # background_noise_path: ".../noise.wav"
        ### Flag for using low level [-4,+4] background noise; default = false
        # low_level_noise: true
    ### Flag for repeating the whole signal once and discarding the first half after processing
    # repeat_signal: true

#################################################
### Bitstream processing
+3 −1
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ prerun_seed: 2

input_path: "experiments/selection/BS1534-1a/proc_input"
output_path: "experiments/selection/BS1534-1a/proc_output"
use_windows_codec_binaries: true
condition_in_output_filename: true

################################################
### Input configuration
@@ -79,7 +81,7 @@ conditions_to_generate:
        cod:
        dec:
            fmt: "STEREO"
    c7:
    c07:
        type: ivas
        bitrates:
            - 64000
Loading