Nixon

Results 8 comments of Nixon

More information: When I comment the code "optimizer.load_state_dict(check_point['optim'])", the program will not crash but the training loss will be much larger than the loss in the last epoch of the...

Yes, you can. You have to change the grammar file and rewrite the transition system.

Is there any documentation for introducing how to adjust the cache size or clear it regularly, I can not figure out how to use it @Narsil

单进程没有这个错误,使用多进程遇到这个错误,有大佬知道大概是哪里出现问题吗?源码要修改哪里?

fix bug: 方法一 升级funasr到1.1.6版本 1. 找到/funasr/fronteds/wav_fronted.py/WavFonted 类的forward 方法 2. 转到第137行,在调用kaldi.fbank方法中,修改代码为: mat = kaldi.fbank( waveform, num_mel_bins=self.n_mels, frame_length=min(self.frame_length,waveform_length/self.fs*1000), frame_shift=self.frame_shift, dither=self.dither, energy_floor=0.0, window_type=self.window, sample_frequency=self.fs, snip_edges=self.snip_edges, ) 在我的场景中此法有效 方法二: MyWavFrontend 或者,如果不想直接修改funasr包代码,可以新建一个MYWavFrontend类 ` @tables.register("frontend_classes", "my_wav_frontend")...

PyTorch Version : 2.3.1,应该跟torch版本关系不大, 你报的还是这个错误吗?

list index out of range 这个你可以尝试一下更新到最新版本funasr, 我前一阵子pull requests修了两个与这个相关的bug,你看是否可以解决你的问题。 choose a window size 400 that is [2,0], 这个,你可以尝试一下用try except 在遇到错误的时候 reload model(重新对asr_model进行初始化)试试。