ltuncay commited on
Commit
4af0bfb
·
verified ·
1 Parent(s): f2fdb1f

fix: default to single-phase extraction without overlap

Browse files
Files changed (3) hide show
  1. README.md +5 -3
  2. config.json +1 -1
  3. configuration_audio.py +1 -1
README.md CHANGED
@@ -96,7 +96,7 @@ challenge's standardized ranking. These evaluations precede the Transformers exp
96
  | Masking ratio | 40–60% |
97
  | Checkpoint step metadata | Not recorded in this older safetensors file |
98
  | Exported weight dtype | float32 |
99
- | Extraction policy | `overlap50_two_phase` |
100
 
101
  ## Load the model
102
 
@@ -129,7 +129,7 @@ Resample to `processor.sampling_rate` and downmix stereo before preprocessing.
129
  The extractor performs padding only; spectrogram/convolution features are computed
130
  inside the model. Pass the returned sample attention mask for variable durations.
131
  Outputs include a frame attention mask and timestamps in milliseconds (-1 for padding).
132
- `pooler_output` uses the saved HEAR extraction preset, including phase-balanced pooling.
133
  Frame features average frequency patches; they are not the raw frequency-time ViT grid.
134
 
135
  ## Fine-tuning
@@ -161,7 +161,7 @@ on `main` for existing consumers.
161
 
162
  This Transformers export uses the **same pretrained encoder weights**. Its public
163
  outputs follow the shared BEST-RQ-2 family extraction policy: frequency-averaged
164
- frame embeddings and phase-balanced clip embeddings with overlapping windows.
165
  The original AECC wrapper returned spectrogram patch tokens with sequential audio
166
  chunking, so the two public interfaces are not interchangeable for reproducing
167
  benchmark results. Use the archived revision for the original evaluation setup.
@@ -210,3 +210,5 @@ BEST-RQ-2 belongs to the BEST-RQ-2 family. Cite the family paper when using it:
210
 
211
  The model weights and bundled implementation are released under the MIT license.
212
  See `LICENSE` and `CODE_LICENSE`.
 
 
 
96
  | Masking ratio | 40–60% |
97
  | Checkpoint step metadata | Not recorded in this older safetensors file |
98
  | Exported weight dtype | float32 |
99
+ | Extraction policy | `native_one_phase` |
100
 
101
  ## Load the model
102
 
 
129
  The extractor performs padding only; spectrogram/convolution features are computed
130
  inside the model. Pass the returned sample attention mask for variable durations.
131
  Outputs include a frame attention mask and timestamps in milliseconds (-1 for padding).
132
+ `pooler_output` uses the saved HEAR extraction preset, using a single phase with no context-window overlap by default.
133
  Frame features average frequency patches; they are not the raw frequency-time ViT grid.
134
 
135
  ## Fine-tuning
 
161
 
162
  This Transformers export uses the **same pretrained encoder weights**. Its public
163
  outputs follow the shared BEST-RQ-2 family extraction policy: frequency-averaged
164
+ frame embeddings and clip embeddings with non-overlapping context windows by default.
165
  The original AECC wrapper returned spectrogram patch tokens with sequential audio
166
  chunking, so the two public interfaces are not interchangeable for reproducing
167
  benchmark results. Use the archived revision for the original evaluation setup.
 
210
 
211
  The model weights and bundled implementation are released under the MIT license.
212
  See `LICENSE` and `CODE_LICENSE`.
213
+
214
+ Default inference uses `native_one_phase` (no context-window overlap and one encoding phase). Reported benchmark results retain their stated evaluation presets; to reproduce overlapping two-phase evaluation, set `model.config.extraction_preset = "overlap50_two_phase"`.
config.json CHANGED
@@ -19,7 +19,7 @@
19
  "pos_embed_type": "sincos",
20
  "qkv_bias": true
21
  },
22
- "extraction_preset": "overlap50_two_phase",
23
  "feature_encoder_kwargs": {},
24
  "hidden_size": 768,
25
  "model_target": "src.models.best_rq2_module.BestRQ2Module",
 
19
  "pos_embed_type": "sincos",
20
  "qkv_bias": true
21
  },
22
+ "extraction_preset": "native_one_phase",
23
  "feature_encoder_kwargs": {},
24
  "hidden_size": 768,
25
  "model_target": "src.models.best_rq2_module.BestRQ2Module",
configuration_audio.py CHANGED
@@ -45,7 +45,7 @@ class AudioEmbeddingConfig(PretrainedConfig):
45
  feature_encoder_kwargs: dict[str, Any] | None = None,
46
  sampling_rate: int = 16000,
47
  spectrogram_adjustment_mode: str = "pad",
48
- extraction_preset: str = "overlap50_two_phase",
49
  **kwargs: Any,
50
  ) -> None:
51
  super().__init__(**kwargs)
 
45
  feature_encoder_kwargs: dict[str, Any] | None = None,
46
  sampling_rate: int = 16000,
47
  spectrogram_adjustment_mode: str = "pad",
48
+ extraction_preset: str = "native_one_phase",
49
  **kwargs: Any,
50
  ) -> None:
51
  super().__init__(**kwargs)