diff --git a/funasr/models/lcbnet/model.py b/funasr/models/lcbnet/model.py index f45e71d6f..45b1ee5d1 100644 --- a/funasr/models/lcbnet/model.py +++ b/funasr/models/lcbnet/model.py @@ -426,7 +426,6 @@ class LCBNet(nn.Module): else: # extract fbank feats time1 = time.perf_counter() - pdb.set_trace() sample_list = load_audio_text_image_video(data_in, fs=frontend.fs, audio_fs=kwargs.get("fs", 16000), data_type=kwargs.get("data_type", "sound"), tokenizer=tokenizer) @@ -434,13 +433,12 @@ class LCBNet(nn.Module): meta_data["load_data"] = f"{time2 - time1:0.3f}" audio_sample_list = sample_list[0] ocr_sample_list = sample_list[1] - pdb.set_trace() speech, speech_lengths = extract_fbank(audio_sample_list, data_type=kwargs.get("data_type", "sound"), frontend=frontend) - pdb.set_trace() time3 = time.perf_counter() meta_data["extract_feat"] = f"{time3 - time2:0.3f}" - meta_data["batch_data_time"] = speech_lengths.sum().item() * frontend.frame_shift * frontend.lfr_n / 1000 + frame_shift = 10 + meta_data["batch_data_time"] = speech_lengths.sum().item() * frame_shift / 1000 speech = speech.to(device=kwargs["device"]) speech_lengths = speech_lengths.to(device=kwargs["device"])