Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
bugfix: fix the bug that no log prints while training or finetuning
志浩917162a9a74d
diff --git a/funasr/tasks/abs_task.py b/funasr/tasks/abs_task.pyindex e0884cef6..f1bfd56a5 100644--- a/funasr/tasks/abs_task.py+++ b/funasr/tasks/abs_task.py@@ -1193,12 +1193,18 @@ class AbsTask(ABC):# logging.basicConfig() is invoked in main_worker() instead of main()# because it can be invoked only once in a process.# FIXME(kamo): Should we use logging.getLogger()?+ # BUGFIX: Remove previous handlers and reset log level+ for handler in logging.root.handlers[:]:+ logging.root.removeHandler(handler)logging.basicConfig(level=args.log_level,format=f"[{os.uname()[1].split('.')[0]}]"f" %(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",)else:+ # BUGFIX: Remove previous handlers and reset log level+ for handler in logging.root.handlers[:]:+ logging.root.removeHandler(handler)# Suppress logging if RANK != 0logging.basicConfig(level="ERROR",