mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix bug
This commit is contained in:
parent
db77a41e29
commit
1e650fac78
@ -102,8 +102,8 @@ class DefaultFrontend(AbsFrontend):
|
||||
if input_stft.dim() == 4:
|
||||
# h: (B, T, C, F) -> h: (B, T, F)
|
||||
if self.training:
|
||||
if self.use_channel == None:
|
||||
input_stft = input_stft[:, :, 0, :]
|
||||
if self.use_channel is not None:
|
||||
input_stft = input_stft[:, :, self.use_channel, :]
|
||||
else:
|
||||
# Select 1ch randomly
|
||||
ch = np.random.randint(input_stft.size(2))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user