Update README.md
Browse files1234569 unmodified lines161718192021227 unmodified lines3031323334353660 unmodified lines979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137---license: cc-by-nc-4.0pipeline_tag: translation---# SimulSeamless9 unmodified lines`f1f5b9a69a47496630aa43605f1bd46e5484a2f4` for SimulEval.## 🤖 Inference using your environmentPlease, set `--source`, and `--target` as described in the[Fairseq Simultaneous Translation repository](https://github.com/facebookresearch/fairseq/blob/main/examples/speech_to_text/docs/simulst_mustc_example.md#inference--evaluation):`${LIST_OF_AUDIO}` is the list of audio paths and `${TGT_FILE}` the segment-wise references in thetarget language.7 unmodified lineslanguages such as Chinese or Japanese).The simultaneous inference of SimulSeamless is based on[AlignAtt](ALIGNATT_SIMULST_AGENT_INTERSPEECH2023.md), thus the __f__ parameter (`${FRAME}`) and thelayer from which to extract the attention scores (`${LAYER}`) have to be set accordingly.### Instruction to replicate IWSLT 2024 results ↙️60 unmodified lines`${LIST_OF_AUDIO}`, `${TGT_FILE}`, `${SEG_SIZE}`, and `${OUT_DIR}` refer to[🤖 Inference using your environment](#-inference-using-your-environment).### Instruction to recreate the docker imagesTo recreate the docker images, follow the steps below.1. Download SimulEval and this repository.2. Create a `Dockerfile` with the following content:```FROM python:3.9RUN pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113ADD /SimulEval /SimulEvalWORKDIR /SimulEvalRUN pip install -e .WORKDIR ../ADD /fbk-fairseq /fbk-fairseqWORKDIR /fbk-fairseqRUN pip install -e .RUN pip install -r speech_requirements.txtWORKDIR ../RUN pip install sentencepieceRUN pip install transformersENTRYPOINT simuleval --standalone --remote-port 2024 \--agent-class examples.speech_to_text.simultaneous_translation.agents.v1_1.simul_alignatt_seamlessm4t.AlignAttSeamlessS2T \--model-size medium --num-beams 5 --user-dir fbk-fairseq/examples \--target-language $TGTLANG --frame-num $FRAME --extract-attn-from-layer $LAYER --device $DEV \--sacrebleu-tokenizer ${BLEU_TOKENIZER} --eval-latency-unit ${LATENCY_UNIT}```3. Build the docker image:```docker build -t simulseamless .```4. Save the docker image:```docker save -o simulseamless.tar simulseamless:latest```## 📍Citation```bibtex1234569 unmodified lines161718192021227 unmodified lines3031323334353660 unmodified lines979899100101102---license: cc-by-nc-4.0pipeline_tag: automatic-speech-recognition---# SimulSeamless9 unmodified lines`f1f5b9a69a47496630aa43605f1bd46e5484a2f4` for SimulEval.## 🤖 Inference using your environmentSet `--source`, and `--target` as described in the[Fairseq Simultaneous Translation repository](https://github.com/facebookresearch/fairseq/blob/main/examples/speech_to_text/docs/simulst_mustc_example.md#inference--evaluation):`${LIST_OF_AUDIO}` is the list of audio paths and `${TGT_FILE}` the segment-wise references in thetarget language.7 unmodified lineslanguages such as Chinese or Japanese).The simultaneous inference of SimulSeamless is based on[AlignAtt](https://github.com/hlt-mt/FBK-fairseq/blob/master/fbk_works/ALIGNATT_SIMULST_AGENT_INTERSPEECH2023.md), thus the __f__ parameter (`${FRAME}`) and thelayer from which to extract the attention scores (`${LAYER}`) have to be set accordingly.### Instruction to replicate IWSLT 2024 results ↙️60 unmodified lines`${LIST_OF_AUDIO}`, `${TGT_FILE}`, `${SEG_SIZE}`, and `${OUT_DIR}` refer to[🤖 Inference using your environment](#-inference-using-your-environment).## 📍Citation```bibtex
README.md+3-38