Skip to content

Pulling remote to local#1

Open
vizsatiz wants to merge 129 commits into
rootflo:mainfrom
m-bain:main
Open

Pulling remote to local#1
vizsatiz wants to merge 129 commits into
rootflo:mainfrom
m-bain:main

Conversation

@vizsatiz
Copy link
Copy Markdown
Member

No description provided.

Beronx86 and others added 30 commits January 9, 2025 15:23
support timestamp for numbers.
chore: remove deprecated VAD_SEGMENTATION_URL
chore: handle empty segments_list case in silero
chore: fix variable naming inconsistency from `segments` to `segments_list`
1carlito and others added 30 commits February 17, 2026 13:30
[New File] benchmark testing
Pass through the average log probability (transcription confidence score)
from ctranslate2 to the final segment output. The field is NotRequired
so existing code constructing segments without it remains valid.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PR #986 ("support timestamps for numbers") introduced three changes that
together broke CTC forced alignment:

1. Unknown chars (numbers, punctuation) were replaced with '*' wildcards
   mapped to token -1. get_wildcard_emission() scored these using
   torch.max() over all non-blank emissions, so wildcards greedily matched
   any speech-like signal in the segment window.

2. get_trellis() was rewritten with a different shape (num_frame, num_tokens)
   and incompatible initialization, discarding the original SoS-offset design
   from the PyTorch forced alignment tutorial.

3. backtrack() was replaced with backtrack_beam(), which always starts
   backtracking from the last frame of the segment window. The original
   backtrack() used torch.argmax() on the last token column to determine
   the starting frame. With padded segment boundaries (silence before/after
   speech), the new implementation spread all tokens across the full window,
   placing the first word at the start of the silence instead of the speech.

This commit restores the original PyTorch tutorial implementation:
- Unknown chars are skipped; words with only unknown chars become
  unalignable and get no timestamps (handled by interpolate_nans)
- get_trellis: restored (num_frame+1, num_tokens+1) shape with SoS offset
- backtrack: restored torch.argmax-based starting frame
- Removed backtrack_beam, get_wildcard_emission, BeamState, Path

Verified: v3.3.0 (pre-#986) produced correct timestamps with padded
segment boundaries; this fix reproduces that behavior.

Fixes #1220

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ktrack

The original code accepted blank_id as a parameter but used hardcoded 0
in two places, breaking alignment for HuggingFace models where the blank
token is [pad] (not index 0).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add optional `progress_callback: Callable[[float], None]` parameter
to the three public API functions for real-time progress tracking.
Each callback receives 0-100% for its own stage independently.

Diarization wraps the callback into pyannote's internal hook protocol,
keeping pyannote internals fully encapsulated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The open().read() call was left behind when the SHA-256 checksum
validation was removed in 86e2b3e. The resulting model_bytes variable
was never used, and the file descriptor was never closed.

Closes #1376

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Characters not in the alignment model's vocabulary (digits, symbols,
foreign script) were excluded from CTC alignment and got no timestamps.

Fix: extend the emission matrix with a wildcard column (max non-blank
score per frame) so unknown chars participate in alignment via the
existing get_trellis/backtrack — no changes to the CTC internals.
Interpolation fallback fills any remaining gaps as a safety net.

Unlike PR #986, this does not rewrite get_trellis or backtrack, so it
avoids the regression that caused #1220.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reproduces the exact reported bug: '4,9' embedded in text gets no
start/end/score because digits and commas are not in the alignment
model dictionary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add pytest to optional dev dependencies and create a dedicated
tests.yml workflow to run pytest across Python 3.10-3.13.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
On environments like Google Colab where torchvision is pre-installed,
`pip install whisperx` upgrades torch to 2.8.0 but leaves the old
incompatible torchvision behind. The version mismatch causes
`RuntimeError: operator torchvision::nms does not exist` which
cascades through transformers' import chain into the confusing
`ModuleNotFoundError: Could not import module 'Wav2Vec2ForCTC'`.

Fixes #1339

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
torchcodec 0.10.0 requires torch 2.10; only 0.6.x-0.7.x are
compatible with torch 2.8. Without the cap, pip resolves to 0.10.0+
causing runtime errors. Platform markers are preserved since torchcodec
has no aarch64 Linux wheels for these versions.

Fixes #1392

Co-Authored-By: ssakkout <145016316+ssakkout@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
`--interpolate_method ignore` crashed with ValueError because pandas
doesn't support "ignore" as a Series.interpolate() method. Return the
series unchanged so NaN values are preserved — callers already guard
with pd.notna() before assigning timestamps.

Closes #1368

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bumps [nltk](https://github.com/nltk/nltk) from 3.9.2 to 3.9.4.
- [Changelog](https://github.com/nltk/nltk/blob/develop/ChangeLog)
- [Commits](nltk/nltk@3.9.2...3.9.4)

---
updated-dependencies:
- dependency-name: nltk
  dependency-version: 3.9.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Add GitHub Actions security audit via zizmor. Fix all existing workflow
findings: pin actions to commit hashes, add persist-credentials: false,
set explicit least-privilege permissions, disable uv cache in release
workflow to prevent cache poisoning.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove third-party action in favor of pre-installed gh CLI.
Pass release tag via env var to prevent template injection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.