Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
place it in a directory inside of conf/ eg. "testing"
and run python stopes/pipelines/asr_bleu/asr_bleu.py +testing=testfile +output_dir=.`