Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using embeddings for eval mode #58

Open
turpaultn opened this issue Oct 4, 2022 · 1 comment
Open

Using embeddings for eval mode #58

turpaultn opened this issue Oct 4, 2022 · 1 comment
Assignees

Comments

@turpaultn
Copy link
Collaborator

turpaultn commented Oct 4, 2022

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)

@popcornell
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants