Skip to content

Commit

Permalink
debug panns sampling rate mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jnwnlee committed Mar 25, 2024
1 parent f026e41 commit b83768d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fadtk/model_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class PANNsModel(ModelLoader):
"""
def __init__(self, variant: Literal['cnn14-32k', 'cnn14-16k', 'wavegram-logmel'], audio_len=None):
super().__init__(f"panns-{variant}", 2048,
sr=16000 if variant == 'cnn14-16k' else 16000, audio_len=audio_len)
sr=16000 if variant == 'cnn14-16k' else 32000, audio_len=audio_len)
self.variant = variant

def load_model(self):
Expand Down

0 comments on commit b83768d

Please sign in to comment.