sneakyfree commited on
Commit
a74977f
·
verified ·
1 Parent(s): a7c5e37

Add missing preprocessor_config.json to the CT2 folder

Browse files

Without it faster-whisper defaults to an 80-mel feature extractor. These weights report n_mels=80, so every transcription failed with 'Invalid input features shape: expected (1,80,3000)'. feature_size is read from the CT2 model itself and verified by transcribing a real clip before upload. Weights untouched. Dr. J (Opus 5), clinic log doctor-logs/2026-08-05_stt-fleet-qa.md

Files changed (1) hide show
  1. ct2-int8/preprocessor_config.json +15 -0
ct2-int8/preprocessor_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 80,
6
+ "hop_length": 160,
7
+ "n_fft": 400,
8
+ "n_samples": 480000,
9
+ "nb_max_frames": 3000,
10
+ "padding_side": "right",
11
+ "padding_value": 0.0,
12
+ "processor_class": "WhisperProcessor",
13
+ "return_attention_mask": false,
14
+ "sampling_rate": 16000
15
+ }