DESED_task
DESED_task copied to clipboard
Using embeddings for eval mode
When using the evaluation mode, by default the baseline with embeddings does not have the "extracted embeddings" Something like this need to be done I guess:
eval_embeddings = None if config["pretrained"]["e2e"] else os.path.join(config["pretrained"]["extracted_embeddings_dir"],
config["pretrained"]["model"], "eval.hdf5")
devtest_dataset = UnlabeledSet(
config["data"]["eval_folder"],
encoder,
pad_to=None,
embeddings_hdf5_file=eval_embeddings,
return_filename=True, feats_pipeline=feature_extraction
)
Tell me if you want a pull request (otherwise just assign it to a further pull request if you put it inside an update)
Sure, I can fix it and reference a PR to this