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

Migrate asr bleu #58

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

CalderJohnson
Copy link

Why ?

As part of seamless_communication, I created a script that evaluates the model's translation accuracy using whisper ASR and BLEU metric.
https://github.com/CalderJohnson/seamless_communication/tree/implementing_eval_script/scripts/m4t/evaluate
In order to take advantage of powerful stopes features such as caching, the launcher, and parallelism, I've implemented a stopes module that can run this evaluation protocol on any number of desired language directions. This will aid in research with the model as it will facilitate quick, parallelized measurement of translation accuracy.

How ?

I've created a simple stopes pipeline consisting of a single module that runs the compute_asr_bleu script on the specified language directions in the fleurs dataset.

Test plan

How did you test your changes ?

I ran tests on a few language directions, ensuring the output was as expected. Reproduce with your own testing config file such as:

# @package _global_

datasets:
  test1:
    lang_dir: "fra-ita"
    num_data_pairs: 2
  #any number of others...

place it in a directory inside of conf/ eg. "testing"

and run python stopes/pipelines/asr_bleu/asr_bleu.py +testing=testfile +output_dir=.`

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants