Skip to content

Support TFLite CLI on Windows#66

Open
betweentwomidnights wants to merge 1 commit into
Stability-AI:mainfrom
betweentwomidnights:feature/windows-tflite-cli
Open

Support TFLite CLI on Windows#66
betweentwomidnights wants to merge 1 commit into
Stability-AI:mainfrom
betweentwomidnights:feature/windows-tflite-cli

Conversation

@betweentwomidnights

Copy link
Copy Markdown
Contributor

Summary

  • Allow the TFLite CLI to start on Windows when the POSIX-only termios and tty modules are unavailable.
  • Preserve the existing arrow-key picker on POSIX platforms; Windows uses the picker’s existing numeric fallback when an interactive selection is needed.

Root cause

sa3_tflite.py imported termios and tty unconditionally, which prevented any Windows invocation from reaching inference, including fully non-interactive commands that supply --dit and --decoder.

Validation

  • python -m py_compile optimized/tflite/scripts/sa3_tflite.py
  • Native Windows LiteRT/XNNPACK text-to-audio smoke test (20 s, one step).
  • Native Windows LiteRT/XNNPACK end-to-end generation with sm-sfx/same-s (20 s, eight steps, CFG 1.0): completed in 12.85 s and produced a verified 44.1 kHz stereo PCM WAV.

The POSIX import succeeds unchanged on Linux/macOS, so the existing arrow-key path remains in use there.

@betweentwomidnights
betweentwomidnights marked this pull request as ready for review July 14, 2026 20:24
Cortexelus added a commit that referenced this pull request Jul 14, 2026
TFLite: Windows support + cross-platform CI (supersedes #66)
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.

1 participant