Loading examples/TEMPLATE.yml +25 −12 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ # delete_tmp: true ### Master seed for random processes like bitstream error pattern generation; default = 0 # master_seed: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ### Any relative paths will be interpreted relative to the working directory the script is called from! ### Usage of absolute paths is recommended. Loading Loading @@ -49,13 +47,6 @@ output_path: "./tmp_output" # input_select: # - "48kHz" ### Horizontally concatenate input items into one long file; default = false # concatenate_input: true ### Specify preamble duration in ms; default = 0 # preamble: 40 ### Flag wheter to use noise (amplitude +-4) for the preamble or silence; default = false (silence) # pad_noise_preamble: true ################################################ ### Input configuration ################################################ Loading @@ -66,7 +57,7 @@ input: # fs: 32000 ################################################ ### Pre-processing ### Pre-processing on individual items ################################################ ### Pre-processing step performed prior to core processing for all conditions ### If not defined, preprocessing step is skipped Loading @@ -93,6 +84,26 @@ input: ### Length of window used at start/end of signal (ms); default = 0 # window: 100 ################################################ ### Pre-processing on whole signal(s) ################################################ ### Options for processing of the concatenated item (concatenate_input: true) or ### the individual items (concatenate_input: false) after previous pre-processing step ### Horizontally concatenate input items into one long file; default = false # concatenate_input: true ### Specify preamble duration in ms; default = 0 # preamble: 40 ### Flag wheter to use noise (amplitude +-4) for the preamble or silence; default = false (silence) # pad_noise_preamble: true ### Additive background noise # background_noise: ### REQUIRED: SNR for background noise in dB # snr: 10 ### REQUIRED: Path to background noise # background_noise_path: ".../noise.wav" ### Seed for delay offest; default = 0 # seed_delay: 10 ################################################# ### Bitstream processing ################################################# Loading @@ -118,6 +129,8 @@ input: # error_pattern: "path/pattern.192" ### Error rate in percent # error_rate: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ################################################ ### Configuration for conditions under test Loading Loading @@ -205,7 +218,7 @@ conditions_to_generate: ### Path to decoder binary; default search for IVAS_dec in bin folder (primary) and PATH (secondary) bin: ~/git/ivas-codec/IVAS_dec ### Decoder output format; default = postprocessing fmt fmt: "CICP19" fmt: "7_1_4" ### Decoder output sampling rate; default = null (same as input) # fs: 48000 ### Additional commandline options; default = null Loading ivas_processing_scripts/__init__.py +4 −5 Original line number Diff line number Diff line Loading @@ -119,6 +119,10 @@ def main(args): if hasattr(cfg, "preprocessing"): preprocess(cfg, cfg.metadata_path, logger) if hasattr(cfg, "preprocessing_2"): # TODO: call function for concatenation, preamble and background noise pass if cfg.concatenate_input: # concatenate items if required concat_setup(cfg, logger) Loading @@ -130,11 +134,6 @@ def main(args): logger.info(f" Generating condition: {condition['name']}") # # TODO: what happens when no concatenation or only one file for concatenation? # if condition["processes"][0].name == "ivas": # TODO: check if 0 index sufficient # a = {"number_frames": cfg.num_frames, "number_frames_preamble": cfg.num_frames_preamble} # condition["processes"][0].tx.update(a) apply_func_parallel( process_item, zip( Loading ivas_processing_scripts/constants.py +0 −8 Original line number Diff line number Diff line Loading @@ -59,14 +59,6 @@ DEFAULT_CONFIG = { "multiprocessing": True, "delete_tmp": False, "master_seed": 0, "prerun_seed": 0, "concatenate_input": False, "concat_silence": { "pre": 0, "post": 0, }, "preamble": None, "pad_noise_preamble": False, "metadata_path": None, # postprocessing "postprocessing": { Loading Loading
examples/TEMPLATE.yml +25 −12 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ # delete_tmp: true ### Master seed for random processes like bitstream error pattern generation; default = 0 # master_seed: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ### Any relative paths will be interpreted relative to the working directory the script is called from! ### Usage of absolute paths is recommended. Loading Loading @@ -49,13 +47,6 @@ output_path: "./tmp_output" # input_select: # - "48kHz" ### Horizontally concatenate input items into one long file; default = false # concatenate_input: true ### Specify preamble duration in ms; default = 0 # preamble: 40 ### Flag wheter to use noise (amplitude +-4) for the preamble or silence; default = false (silence) # pad_noise_preamble: true ################################################ ### Input configuration ################################################ Loading @@ -66,7 +57,7 @@ input: # fs: 32000 ################################################ ### Pre-processing ### Pre-processing on individual items ################################################ ### Pre-processing step performed prior to core processing for all conditions ### If not defined, preprocessing step is skipped Loading @@ -93,6 +84,26 @@ input: ### Length of window used at start/end of signal (ms); default = 0 # window: 100 ################################################ ### Pre-processing on whole signal(s) ################################################ ### Options for processing of the concatenated item (concatenate_input: true) or ### the individual items (concatenate_input: false) after previous pre-processing step ### Horizontally concatenate input items into one long file; default = false # concatenate_input: true ### Specify preamble duration in ms; default = 0 # preamble: 40 ### Flag wheter to use noise (amplitude +-4) for the preamble or silence; default = false (silence) # pad_noise_preamble: true ### Additive background noise # background_noise: ### REQUIRED: SNR for background noise in dB # snr: 10 ### REQUIRED: Path to background noise # background_noise_path: ".../noise.wav" ### Seed for delay offest; default = 0 # seed_delay: 10 ################################################# ### Bitstream processing ################################################# Loading @@ -118,6 +129,8 @@ input: # error_pattern: "path/pattern.192" ### Error rate in percent # error_rate: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ################################################ ### Configuration for conditions under test Loading Loading @@ -205,7 +218,7 @@ conditions_to_generate: ### Path to decoder binary; default search for IVAS_dec in bin folder (primary) and PATH (secondary) bin: ~/git/ivas-codec/IVAS_dec ### Decoder output format; default = postprocessing fmt fmt: "CICP19" fmt: "7_1_4" ### Decoder output sampling rate; default = null (same as input) # fs: 48000 ### Additional commandline options; default = null Loading
ivas_processing_scripts/__init__.py +4 −5 Original line number Diff line number Diff line Loading @@ -119,6 +119,10 @@ def main(args): if hasattr(cfg, "preprocessing"): preprocess(cfg, cfg.metadata_path, logger) if hasattr(cfg, "preprocessing_2"): # TODO: call function for concatenation, preamble and background noise pass if cfg.concatenate_input: # concatenate items if required concat_setup(cfg, logger) Loading @@ -130,11 +134,6 @@ def main(args): logger.info(f" Generating condition: {condition['name']}") # # TODO: what happens when no concatenation or only one file for concatenation? # if condition["processes"][0].name == "ivas": # TODO: check if 0 index sufficient # a = {"number_frames": cfg.num_frames, "number_frames_preamble": cfg.num_frames_preamble} # condition["processes"][0].tx.update(a) apply_func_parallel( process_item, zip( Loading
ivas_processing_scripts/constants.py +0 −8 Original line number Diff line number Diff line Loading @@ -59,14 +59,6 @@ DEFAULT_CONFIG = { "multiprocessing": True, "delete_tmp": False, "master_seed": 0, "prerun_seed": 0, "concatenate_input": False, "concat_silence": { "pre": 0, "post": 0, }, "preamble": None, "pad_noise_preamble": False, "metadata_path": None, # postprocessing "postprocessing": { Loading