DESED_task icon indicating copy to clipboard operation
DESED_task copied to clipboard

Using embeddings for eval mode

Open turpaultn opened this issue 2 years ago • 1 comments

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)

turpaultn avatar Oct 04 '22 13:10 turpaultn

Sure, I can fix it and reference a PR to this

popcornell avatar Oct 04 '22 21:10 popcornell