Skip to content

Commit

Permalink
Fix pipeline test
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Rogge authored and Niels Rogge committed Nov 21, 2022
1 parent d2fc0ae commit 3d29faa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/pipelines/test_pipelines_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def get_tiny_feature_extractor_from_checkpoint(checkpoint, tiny_config, feature_

# Audio Spectogram Transformer specific.
if feature_extractor.__class__.__name__ == "ASTFeatureExtractor":
feature_extractor = feature_extractor.__class__(max_length=24, num_mel_bins=16)
feature_extractor = feature_extractor.__class__(
max_length=tiny_config.max_length, num_mel_bins=tiny_config.num_mel_bins
)

# Speech2TextModel specific.
if hasattr(tiny_config, "input_feat_per_channel") and feature_extractor:
Expand Down

0 comments on commit 3d29faa

Please sign in to comment.