From 9595a9432fadfbdacd4e6897f6b9a83957699558 Mon Sep 17 00:00:00 2001
From: seanzhang-zhichen <74812416+seanzhang-zhichen@users.noreply.github.com>
Date: 星期二, 05 三月 2024 17:42:14 +0800
Subject: [PATCH] modify paraformer train doc (#1427)

---
 funasr/models/contextual_paraformer/model.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/funasr/models/contextual_paraformer/model.py b/funasr/models/contextual_paraformer/model.py
index 1c0805a..7d6f729 100644
--- a/funasr/models/contextual_paraformer/model.py
+++ b/funasr/models/contextual_paraformer/model.py
@@ -189,13 +189,10 @@
         # 0. sampler
         decoder_out_1st = None
         if self.sampling_ratio > 0.0:
-            if self.step_cur < 2:
-                logging.info("enable sampler in paraformer, sampling_ratio: {}".format(self.sampling_ratio))
+
             sematic_embeds, decoder_out_1st = self.sampler(encoder_out, encoder_out_lens, ys_pad, ys_pad_lens,
                                                            pre_acoustic_embeds, contextual_info)
         else:
-            if self.step_cur < 2:
-                logging.info("disable sampler in paraformer, sampling_ratio: {}".format(self.sampling_ratio))
             sematic_embeds = pre_acoustic_embeds
 
         # 1. Forward decoder

--
Gitblit v1.9.1