victan commited on
Commit
7ac5711
1 Parent(s): 20b6753

Upload seamless_communication/cli/streaming/README.md with huggingface_hub

Browse files
seamless_communication/cli/streaming/README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evaluating SeamlessStreaming and Seamless models
2
+ SeamlessStreaming is the streaming only model and Seamless is the expressive streaming model.
3
+
4
+ ## Quick start:
5
+
6
+ Evaluation can be run with the `streaming_evaluate` CLI.
7
+
8
+ We use the `seamless_streaming_unity` for loading the speech encoder and T2U models, and `seamless_streaming_monotonic_decoder` for loading the text decoder for streaming evaluation. This is already set as defaults for the `streaming_evaluate` CLI, but can be overridden using the `--unity-model-name` and `--monotonic-decoder-model-name` args if required.
9
+
10
+ Note that the numbers in our paper use single precision floating point format (fp32) for evaluation by setting `--dtype fp32`. Also note that the results from running these evaluations might be slightly different from the results reported in our paper (which will be updated soon with the new results).
11
+
12
+ ### S2TT:
13
+ Set the task to `s2tt` for evaluating the speech-to-text translation part of the SeamlessStreaming model.
14
+
15
+ ```bash
16
+ streaming_evaluate --task s2tt --data-file <path_to_data_tsv_file> --audio-root-dir <path_to_audio_root_directory> --output <path_to_evaluation_output_directory> --tgt-lang <3_letter_lang_code>
17
+ ```
18
+
19
+ Note: The `--ref-field` can be used to specify the name of the reference column in the dataset.
20
+
21
+ ### ASR:
22
+ Set the task to `asr` for evaluating the automatic speech recognition part of the SeamlessStreaming model. Make sure to pass the source language as the `--tgt-lang` arg.
23
+
24
+ ```bash
25
+ streaming_evaluate --task asr --data-file <path_to_data_tsv_file> --audio-root-dir <path_to_audio_root_directory> --output <path_to_evaluation_output_directory> --tgt-lang <3_letter_source_lang_code>
26
+ ```
27
+
28
+ ### S2ST:
29
+
30
+ #### SeamlessStreaming:
31
+
32
+ Set the task to `s2st` for evaluating the speech-to-speech translation part of the SeamlessStreaming model.
33
+
34
+ ```bash
35
+ streaming_evaluate --task s2st --data-file <path_to_data_tsv_file> --audio-root-dir <path_to_audio_root_directory> --output <path_to_evaluation_output_directory> --tgt-lang <3_letter_lang_code>
36
+ ```
37
+
38
+ #### Seamless:
39
+ The Seamless model is an unified model for streaming expressive speech-to-speech tranlsation. Use the `--expressive` arg for running evaluation of this unified model.
40
+
41
+ ```bash
42
+ streaming_evaluate --task s2st --data-file <path_to_data_tsv_file> --audio-root-dir <path_to_audio_root_directory> --output <path_to_evaluation_output_directory> --tgt-lang <3_letter_lang_code> --expressive
43
+ ```
44
+
45
+ The Seamless model uses `vocoder_pretssel` which is a 24KHz version (`vocoder_pretssel`) by default. In the current version of our paper, we use 16KHz version (`vocoder_pretssel_16khz`) for the evaluation , so in order to reproduce those results please add this arg to the above command: `--vocoder-name vocoder_pretssel_16khz`.
46
+
47
+ `vocoder_pretssel` or `vocoder_pretssel_16khz` checkpoints are gated, please check out [this section](/README.md#seamlessexpressive-models) to acquire these checkpoints. Also, make sure to add `--gated-model-dir <path_to_vocoder_checkpoints_dir>`