Anna Sun 1 жил өмнө
parent
commit
3e673a7468

+ 1 - 1
src/seamless_communication/streaming/agents/detokenizer.py

@@ -16,7 +16,7 @@ from seamless_communication.streaming.agents.common import (
 )
 
 
-class DetokenizerAgent(TextToTextAgent, NoUpdateTargetMixin):
+class DetokenizerAgent(NoUpdateTargetMixin, TextToTextAgent):
     def __init__(self, args: Namespace):
         super().__init__(args)
         self.detokenize_only = args.detokenize_only

+ 1 - 1
src/seamless_communication/streaming/agents/offline_w2v_bert_encoder.py

@@ -24,7 +24,7 @@ from seamless_communication.streaming.agents.common import (
 )
 
 
-class OfflineWav2VecBertEncoderAgent(SpeechToSpeechAgent, NoUpdateTargetMixin):
+class OfflineWav2VecBertEncoderAgent(NoUpdateTargetMixin, SpeechToSpeechAgent):
     """
     Incremental encoding of an wav2vec encoder output
     It update the whole encoder states every time when there is a new incoming segment.