5 Commits
Author SHA1 Message Date
nanaotoandnanaoto bfaf561d7b ci: run the lightweight checks on Windows too (#766)
* test: resolve temp paths in the CLI tests so they pass off Linux

These assertions compare a path the CLI printed against one built from
`tempfile.TemporaryDirectory()`. On Linux those agree; on macOS they do not,
because `/var` is a symlink to `/private/var` and the CLI resolves it:

    AssertionError: 'model_dir = "/var/folders/.../models"'
      not found in 'model_dir = "/private/var/folders/.../models"'

18 of 153 non-GPU tests failed that way. Windows has its own version of the same
problem — `RUNNER~1` 8.3 short names and drive-letter case — so this blocks CI on
any non-Linux runner.

Resolve at the point the temp directory is wrapped, which is what
`test_cli_v2_download.py` already does at its seven sites and why that file was
the only one passing. 129 call sites across the other four files; no behaviour
changes, the comparison just uses the same canonical form on both sides.

153 passed, 0 failed afterwards.

* ci: run the lightweight checks on Windows too

Everything platform-specific in this repo was unverified. `pyproject.toml`
carries three `sys_platform` markers — triton-windows gated to win32, and the
wetext / WeTextProcessing split on linux — and `cli_tests` branches three ways on
`sys.platform` for config and model-cache locations. CI only ever exercised the
Linux side of any of it. The triton-windows marker bug (#742, #749) was exactly
this shape: a Windows-only resolution failure that no amount of green Linux CI
could catch.

No GPU is needed. `-m "not gpu"` deselects the 22 GPU tests, and the one
remaining case that passes `--device cuda` runs against a hand-built
`SimpleNamespace` whose `is_available` is `lambda: True`
(`cli_tests/test_cli_v2_check.py:93-98`), so nothing looks for a real device.

`fail-fast: false` so a Windows failure still lets the Linux result through, and
the uv cache is enabled — the Windows job resolves a cu128 torch and there is no
reason to refetch it every run.

Blocking rather than advisory, because the previous commit fixed the path
assertions that would otherwise have failed there: 153 passed, 0 failed.

---------

Co-authored-by: nanaoto <10inspiral@gmail.com>
2026-08-13 16:33:16 +08:00
Vic WangandJennie b5bd6579e3 feat: expose accel torch compile (#718)
* feat(webui): add preset save/load/manage support

* fix(webui): fix preset initialization and loading issues

* feat(cli/webui): expose use_accel and use_torch_compile options

- Add --accel/--torch-compile flags to CLI v2 synth and batch commands
- Add use_accel/use_torch_compile to persisted config keys
- Pass both options through to IndexTTS2 in CLI and WebUI
- Update relevant CLI tests for new runtime options

* feat(webui): add UI checkboxes for use_accel and use_torch_compile in advanced settings

- Add two checkboxes in the advanced settings accordion
- Default values follow the --accel / --torch_compile CLI flags
- Rebuild the IndexTTS2 engine when checkbox values differ from current instance

* feat: expose accel/torch_compile as startup args only; add optional extras

* docs: remove Windows acceleration note from README

* test(cli): mock flash_attn/triton imports in no-GPU CLI tests

---------

Co-authored-by: Jennie <wangyihui02@bilibili.com>
2026-07-08 23:15:26 +08:00
From_Abyss 7264ce2a9a fix: fix indextts2 model resource checks (#707)
* fork/PR_CLI: 修复CLI误将pinyin.vocab作为模型文件进行检查而报错的问题

* fork/PR_CLI: indextts2 check 指令增加 hf_cache 相关模型的检查
2026-06-23 15:58:20 +08:00
5ad3403636 fix: fix model download redirect issue, dependency placement, and test efficiency (#706)
* fix: fix model download redirect issue and add test

* fix: address review comments on requests dep, connection leak, and test download cap

* fix: fix inconsistency of testcase and code

* fix: address remaining PR review feedback

* fix: cli download uses auto network detection, matching webui behavior

* fix: use ModelScope local_dir directly, remove redundant tmp download and file shuffling

* fix: update cli download tests to match new auto/sdk-based download paths

* Fix ModelScope single-file local path handling

---------

Co-authored-by: nanaoto <10inspiral@gmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-16 14:53:34 +08:00
From_Abyss ec8a49b615 Add a dedicated indextts2 CLI for IndexTTS2 (#694)
* Add `indextts2` CLI skeleton with `check`

* Add `synth` baseline text-to-audio path

* Add `synth` emotion controls

* feat(cli): add validated emotion vector support

* test(cli): move CLI tests into dedicated package

* feat(cli): add batch command and dry-run batch file validation

* feat(cli): add basic batch synthesis execution

* feat(cli): add batch emotion defaults and vector support

* feat(cli): add dry-run preflight for standalone concat

* feat(cli): add standalone concat execution

* feat(cli): add automatic batch output directory naming

* feat(cli): add batch concat dry-run preflight

* feat(cli): enable batch concat execution

* feat(cli): Add user-level status and persistence configuration

* feat(cli): use resolved model resource directory for model commands

* feat(cli): add explicit model download command

* fix(cli): improve model_dir
2026-06-13 01:01:31 +08:00