Rthur2003 commited on
Commit
91e078e
·
1 Parent(s): e93262a

fix: add debug logging for vocal extraction failures in extract_sample_features

Browse files
app/training/extract_features_batch.py CHANGED
@@ -108,7 +108,8 @@ def extract_sample_features(audio_path: str) -> dict | None:
108
  "vocal_harmonic_ratio": vocals.vocal_harmonic_ratio,
109
  "vocal_energy_ratio": vocals.vocal_energy_ratio,
110
  })
111
- except Exception:
 
112
  # Fill vocal features with defaults
113
  row.update({
114
  "has_vocals": 0.0,
 
108
  "vocal_harmonic_ratio": vocals.vocal_harmonic_ratio,
109
  "vocal_energy_ratio": vocals.vocal_energy_ratio,
110
  })
111
+ except Exception as e: # noqa: BLE001
112
+ logger.debug("Vocal extraction failed: %s", e)
113
  # Fill vocal features with defaults
114
  row.update({
115
  "has_vocals": 0.0,