Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuacakuaca committed Nov 15, 2023
1 parent e3101cf commit cf72c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i6_models/primitives/feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def forward(self, raw_audio, length) -> Tuple[torch.Tensor, torch.Tensor]:
log_melspec = torch.log10(torch.clamp(melspec, min=self.min_amp))
feature_data = torch.transpose(log_melspec, 1, 2) # [B, T', F']

if self.center and not rasr_compatible:
if self.center and not self.rasr_compatible:
length = (length // self.hop_length) + 1
else:
length = ((length - self.win_length) // self.hop_length) + 1
Expand Down

0 comments on commit cf72c0a

Please sign in to comment.