Commit Graph

55 Commits

Author SHA1 Message Date
Enno Hermann ef8158d281 build: use group not extra for docs dependencies 2024-11-06 10:06:20 +01:00
Enno Hermann 45b8b5b3c3
build: set upper version limit for trainer (#130) 2024-11-05 23:34:41 +01:00
Enno Hermann f6a4d5e469 chore: bump version to 0.24.3
[ci skip]
2024-11-04 19:04:48 +01:00
Enno Hermann ce5c492518 ci: simplify ci by using uv where possible 2024-11-04 18:39:51 +01:00
Enno Hermann 8e66be2c32 fix: only enable load with weights_only in pytorch>=2.4
Allows moving the minimum Pytorch version back to 2.1
2024-11-04 18:39:51 +01:00
Enno Hermann ad435b5440 build: again restrict to numpy<2
Some parts of spacy/thinc are still causing issues
2024-10-20 15:20:27 +02:00
Enno Hermann a510ec3b68 build(uv): add constraint on numba to avoid resolution error
Otherwise it backtracks to an old numba and then llvmlite version that can't be
built:
https://github.com/astral-sh/uv/issues/6281
2024-10-20 15:20:27 +02:00
Johnny Street 018d4ba1db fix(xtts): support transformers>=4.43.0 in streaming inference 2024-10-20 15:20:26 +02:00
Enno Hermann 073f8de652
Merge pull request #95 from idiap/cibuildwheel
ci(release): switch to cibuildwheel
2024-10-04 14:18:26 +02:00
Enno Hermann 6c2e0be0b6 chore: bump version to 0.24.2 2024-10-04 12:28:52 +02:00
Kolja Beigel f75d0952f1
fix(build): restrict spacy version to unbreak installation (#92)
* Update pyproject.toml

* Update pyproject.toml

* Update pyproject.toml

* Update pyproject.toml

* build: simplify requirement restrictions

---------

Co-authored-by: Enno Hermann <enno.hermann@idiap.ch>
2024-10-04 12:02:59 +02:00
Enno Hermann 3e8125c99f ci: switch to cibuildwheel 2024-09-17 14:17:11 +02:00
Enno Hermann 0a18418286
build: allow numpy2, which should be supported in spacy 3.8 now (#81) 2024-09-13 12:12:14 +02:00
Enno Hermann 86b58fb6d9 fix: define torch safe globals for torch.load
Required for loading some models using torch.load(..., weights_only=True). This
is only available from Pytorch 2.4
2024-09-12 23:37:19 +02:00
Enno Hermann 7014782ad4 build: add upper bound for transformers
4.43.* broke XTTS streaming again
2024-08-05 10:28:03 +02:00
Enno Hermann b1558b06d7 build: require numpy<2 because spacy/thinc lack support 2024-08-05 10:27:14 +02:00
Enno Hermann d304ab2769 build: update gruut version for numpy2 support 2024-08-05 10:27:14 +02:00
Daniel Walmsley 20bbb411c2
fix(xtts): update streaming for transformers>=4.42.0 (#59)
* Fix Stream Generator on MacOS

* Make it work on mps

* Implement custom tensor.isin

* Fix for latest TF

* Comment out hack for now

* Remove unused code

* build: increase minimum transformers version

* style: fix

---------

Co-authored-by: Enno Hermann <Eginhard@users.noreply.github.com>
2024-07-25 16:24:10 +02:00
Enno Hermann de35920317
Merge pull request #50 from idiap/umap
build: move umap-learn into optional notebook dependencies
2024-07-25 13:26:09 +01:00
Enno Hermann 8cab2e3b4e ci: test lowest and highest compatible versions of dependencies 2024-06-29 17:33:33 +02:00
Enno Hermann 808a938171 build: specify minimum versions for dependencies 2024-06-29 17:33:33 +02:00
Enno Hermann c693b08830 build: update trainer to 0.1.4 2024-06-29 15:07:08 +02:00
Enno Hermann 59ef28d708 build: move umap-learn into optional notebook dependencies
Except for notebooks, it's only used to show embedding plots during speaker
encoder training, in which case a warning is now shown to install it.
2024-06-26 23:53:17 +02:00
Enno Hermann 4b6da4e7ba refactor(stream_generator): update special tokens for transformers>=4.41.1
Fixes #31. The handling of special tokens in `transformers` was changed in
https://github.com/huggingface/transformers/pull/30624 and
https://github.com/huggingface/transformers/pull/30746. This updates the XTTS
streaming code accordingly.
2024-06-17 09:52:35 +02:00
Enno Hermann 4bc0e75a08 build: add numpy2 support
Identified necessary code changes with the NPY201 ruff rule. Gruut is the only
dependency that doesn't support numpy2 yet.

NB: At build time numpy>=2.0.0 should be required to be able to build wheels
compatible with both numpy1+2:
https://numpy.org/devdocs/dev/depending_on_numpy.html#numpy-2-abi-handling
2024-06-16 22:10:33 +02:00
Enno Hermann 03430de88e chore: bump version to 0.24.1 2024-05-29 09:57:55 +02:00
Enno Hermann dc629f825d build: set upper version limit for transformers
transformers>=4.41 break XTTS streaming, see #31
2024-05-28 12:29:42 +02:00
Enno Hermann 602325021b chore: update version to 0.24.0
[ci skip]
2024-05-16 18:05:51 +02:00
Enno Hermann 865a48156d fix: make korean g2p deps optional 2024-05-08 18:08:40 +02:00
Enno Hermann 55ed162f2a fix: make chinese g2p deps optional 2024-05-08 18:08:40 +02:00
Enno Hermann ea893c3795 fix: make bangla g2p deps optional 2024-05-08 18:08:40 +02:00
Enno Hermann 4f2eff418e chore: enable ruff rules that already pass 2024-05-08 18:08:40 +02:00
Enno Hermann 0504ae3a02 ci: add script to automatically generate requirements.dev.txt
Having this file is still useful to allow installing *only* dev requirements
(e.g. in CI) with:
  pip install -r requirements.dev.txt

Generate that file automatically from the pyproject.toml based on:
e7c6baf00f/tools/generate_requirements.py
2024-05-08 12:17:47 +02:00
Enno Hermann 8d2a562c59 build: move dependencies into pyproject.toml 2024-05-08 12:17:45 +02:00
Enno Hermann fb92e13ebb build: remove unused/obsolete code 2024-05-08 12:13:41 +02:00
Enno Hermann 259d8fc40b build: store version in pyproject.toml 2024-05-07 18:27:55 +02:00
Enno Hermann f4cacd7b7c build: move metadata from setup.py to pyproject.toml 2024-05-07 18:27:55 +02:00
Enno Hermann 962f9bbbcf refactor(espeak_wrapper): fix ruff lint suggestions 2024-05-01 13:31:39 +02:00
Enno Hermann 31a9201639 ci: combine coverage reports
Based on https://hynek.me/articles/ditch-codecov-python/
2024-03-11 14:26:42 +01:00
Enno Hermann 1961687a18 build: update to ruff 0.3.0 2024-03-06 13:40:56 +01:00
Enno Hermann 39149ef564 build: remove isort
Import sorting now handled by ruff.
2024-03-06 13:37:45 +01:00
Aarni Koskela 8e95c3e436 Convert pylint configuration to ruff
With https://github.com/akx/pylint-to-ruff
2023-12-13 14:56:41 +02:00
Eren Gölge e39da6147f
Merge pull request #2999 from akx/remove-unnecessary-black-config
Remove unnecessary black exclude config
2023-09-27 09:43:06 +02:00
Aarni Koskela 8bb2d652ca pyproject.toml: loosen dependencies to avoid building from source 2023-09-26 20:41:26 +03:00
Aarni Koskela 94c5fd0765 Remove unnecessary black exclude config
It seems to have been copy-pasted from the Black docs.
2023-09-26 16:02:55 +03:00
Eren G??lge a58fb6c01b Update requirements 2023-06-22 13:53:19 +02:00
Martin Weinelt 994be163e1
Use packaging.version for version comparisons (#2310)
* Use packaging.version for version comparisons

The distutils package is deprecated¹ and relies on PEP 386² version
comparisons, which have been superseded by PEP 440³ which is implemented
through the packaging module.

With more recent distutils versions, provided through setuptools
vendoring, we are seeing the following exception during version
comparisons:

> TypeError: '<' not supported between instances of 'str' and 'int'

This is fixed by this migration.

[1] https://docs.python.org/3/library/distutils.html
[2] https://peps.python.org/pep-0386/
[3] https://peps.python.org/pep-0440/

* Improve espeak version detection robustness

On many modern systems espeak is just a symlink to espeak-ng. In that
case looking for the 3rd word in the version output will break the
version comparison, when it finds `text-to-speech:`, instead of a proper
version.

This will not break during runtime, where espeak-ng would be
prioritized, but the phonemizer and tokenizer tests force the backend
to `espeak`, which exhibits this breakage.

This improves the version detection by simply looking for the version
after the "text-to-speech:" token.

* Replace distuils.copy_tree with shutil.copytree

The distutils module is deprecated and slated for removal in Python
3.12. Its usage should be replaced, in this case by a compatible method
from shutil.
2023-01-29 23:47:00 +01:00
Eren Gölge 4857967063
🐍 Python 3.10.x support and drop Python 3.6 support (#1565)
* Update requirements

* Update CI for p3.10

* Update numpy requirement

* Drop 🐍p3.6 support

Numpy also dropped support for p3.6

* Bind cython v0.29.28

* Bind pyworld to v0.2.10

> 0.2.10 is not p3.10.x compatible

* Update Dockerfile
2022-05-12 15:50:25 +02:00
WeberJulian 3c7c14607b
Add formatting tests (#1437)
* Add style checks to `make lint`

* Bump target-version in black config
2022-03-23 17:23:36 +01:00
Eren Gölge 8c74f054f0 Enable support for 🐍 python 3.10
Bump up versions numpy 1.19.5 and TF 2.5.0
2021-06-28 17:03:47 +02:00