voidful commited on
Commit
52ca1d3
·
verified ·
1 Parent(s): eaad0f5

Update processing_gemma3_omni.py

Browse files
Files changed (1) hide show
  1. processing_gemma3_omni.py +5 -1
processing_gemma3_omni.py CHANGED
@@ -92,7 +92,11 @@ class Gemma3AudioFeatureExtractor(SequenceFeatureExtractor):
92
  ):
93
  _win_length = win_length if win_length is not None else n_fft
94
  _hop_length = hop_length if hop_length is not None else _win_length // 4
95
-
 
 
 
 
96
  super().__init__(
97
  feature_size=n_mels, # This is num_mel_bins
98
  sampling_rate=sampling_rate, # This is the target sampling rate for featurization
 
92
  ):
93
  _win_length = win_length if win_length is not None else n_fft
94
  _hop_length = hop_length if hop_length is not None else _win_length // 4
95
+
96
+ kwargs.pop("feature_size", None)
97
+ kwargs.pop("sampling_rate", None)
98
+ kwargs.pop("padding_value", None)
99
+
100
  super().__init__(
101
  feature_size=n_mels, # This is num_mel_bins
102
  sampling_rate=sampling_rate, # This is the target sampling rate for featurization