TensorSpeech / TensorFlowTTS

:stuck_out_tongue_closed_eyes: TensorFlowTTS: Real-Time State-of-the-art Speech Synthesis for Tensorflow 2 (supported including English, French, Korean, Chinese, German and Easy to adapt for other languages)
https://tensorspeech.github.io/TensorFlowTTS/
Apache License 2.0
3.81k stars 811 forks source link

tensorflow-gpu==2.7.0 #790

Open Lynkes opened 1 year ago

Lynkes commented 1 year ago

pip install TensorFlowTTS ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==2.7.0 (from tensorflowtts) (from versions: 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.12.0) ERROR: No matching distribution found for tensorflow-gpu==2.7.0

Lynkes commented 1 year ago

if i update it breaks alot of stuff.

irenepenasperez commented 1 year ago

Hello, I have the same problem and I can't find a solution. I'm running the code on Collab. Thanks in advance

linuxmagic-mp commented 1 year ago

If this project wants to remain active, it will have to address the problem(s) surrounding 'pip' install.

Note, running Python 3.10, and it should NOT be looking for

Collecting tensorflow-gpu>=2.3.1 (from TensorFlowTTS) Downloading tensorflow-gpu-2.12.0.tar.gz (2.6 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

  setuptools.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier)
      python_version>"3.7"

Since now adays, tensorflow-gpu has been deprecated. Not sure why it is trying for tensorflow-gpu, but I am sure those packages won't see much love as they are deprecated. And I have tensorflow-2.12.0 installed.

ahmedalbahnasawi commented 1 year ago

use python 3.6 and tf-gpu 2.2

linuxmagic-mp commented 1 year ago

Would it not be better to update this project? Should it not be able to support newer Python and TensorFlow?

ahmedalbahnasawi commented 1 year ago

never tested TF-TTS with python >3.7 and TF >=2.6. Better if you use the Dockerfile in this branch or older branches

Zac-Gal commented 1 year ago

How to run this in Colab?

Philaeux commented 1 year ago

use python 3.6 and tf-gpu 2.2

This lib should comply with tensorflow,namely

The "tensorflow-gpu" package has been removed!

      Please install "tensorflow" instead.

      Other than the name, the two packages have been identical
      since TensorFlow 2.1, or roughly since Sep 2019. For more
      information, see: pypi.org/project/tensorflow-gpu

So switching this lib requirements to tensorflow instead of tensorflow-gpu should break nothing.

Philaeux commented 1 year ago

This library also uses pyopenjtalk as a requirement, and this library has this build requirements:

The python package relies on cython to make python bindings for open_jtalk and hts_engine_API. You must need the following tools to build and install pyopenjtalk:

C/C++ compilers (to build C/C++ extentions)
cmake
cython

From my understanding, these are also necessary for TensorflowTTS

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

MohmedAAK commented 11 months ago

use python 3.6 and tf-gpu 2.2

This lib should comply with tensorflow,namely

The "tensorflow-gpu" package has been removed!

      Please install "tensorflow" instead.

      Other than the name, the two packages have been identical
      since TensorFlow 2.1, or roughly since Sep 2019. For more
      information, see: pypi.org/project/tensorflow-gpu

So switching this lib requirements to tensorflow instead of tensorflow-gpu should break nothing.

i had same problem , solved by your answer indeed so I created fork and change dependency of tensorflow-gpu to tensorflow>=2.1 and library as fas as I tested it is working no with no error so I would recommend change setyp.py in the main branch like this

requirements = {
    "install": [
        "tensorflow>=2.1",
        "tensorflow-addons>=0.10.0",
        "setuptools>=38.5.1",

instead of

requirements = {
    "install": [
        "tensorflow-gpu==2.7.0",
        "tensorflow-addons>=0.10.0",
        "setuptools>=38.5.1",

you can find my forked version here with this and a few improvements.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

moaazelashaal commented 5 months ago

@ahmedalbahnasawi can we get it touch ?

ahmedalbahnasawi commented 5 months ago

@ahmedalbahnasawi can we get it touch ?

sure ahmedbhna@gmail.com

kon72 commented 5 months ago

All tests are passed with this diff:

diff --git a/setup.py b/setup.py
index 71d6428..8a03dee 100755
--- a/setup.py
+++ b/setup.py
@@ -22,8 +22,8 @@ if LooseVersion(pip.__version__) < LooseVersion("19"):
 # TODO(@dathudeptrai) update requirement if needed.
 requirements = {
     "install": [
-        "tensorflow-gpu==2.7.0",
-        "tensorflow-addons>=0.10.0",
+        "tensorflow>=2.7.0,<2.15.0",
+        "tensorflow-addons[tensorflow]>=0.10.0",
         "setuptools>=38.5.1",
         "huggingface_hub==0.0.8",
         "librosa>=0.7.0",
diff --git a/tensorflow_tts/models/mb_melgan.py b/tensorflow_tts/models/mb_melgan.py
index 7340d84..98cb2f1 100755
--- a/tensorflow_tts/models/mb_melgan.py
+++ b/tensorflow_tts/models/mb_melgan.py
@@ -19,7 +19,7 @@

 import numpy as np
 import tensorflow as tf
-from scipy.signal import kaiser
+from scipy.signal.windows import kaiser

 from tensorflow_tts.models import BaseModel
 from tensorflow_tts.models import TFMelGANGenerator

Output of pip freeze:

annotated-types==0.6.0
astunparse==1.6.3
audioread==3.0.1
cachetools==5.3.3
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
contourpy==1.2.1
cycler==0.12.1
Cython==3.0.10
dataclasses==0.6
decorator==5.1.1
Distance==0.1.3
exceptiongroup==1.2.1
filelock==3.14.0
flake8==6.1.0
flatbuffers==24.3.25
fonttools==4.51.0
g2p-en==2.1.0
g2pM==0.1.2.5
gast==0.5.4
google-auth==2.29.0
google-auth-oauthlib==1.0.0
google-pasta==0.2.0
grpcio==1.62.2
h5py==3.11.0
hacking==6.1.0
huggingface-hub==0.0.8
idna==3.7
inflect==7.0.0
iniconfig==2.0.0
jamo==0.4.1
joblib==1.4.0
keras==2.14.0
kiwisolver==1.4.5
lazy_loader==0.4
libclang==18.1.1
librosa==0.10.1
llvmlite==0.42.0
Markdown==3.6
MarkupSafe==2.1.5
matplotlib==3.8.4
mccabe==0.7.0
ml-dtypes==0.2.0
more-itertools==10.2.0
msgpack==1.0.8
nltk==3.8.1
numba==0.59.1
numpy==1.26.4
oauthlib==3.2.2
opt-einsum==3.3.0
packaging==24.0
pillow==10.3.0
platformdirs==4.2.1
pluggy==1.5.0
pooch==1.8.1
protobuf==4.25.3
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycodestyle==2.11.1
pycparser==2.22
pydantic==2.7.1
pydantic_core==2.18.2
pyflakes==3.1.0
pyopenjtalk==0.3.3
pyparsing==3.1.2
pypinyin==0.51.0
pytest==8.2.0
python-dateutil==2.9.0.post0
pyworld==0.3.4
PyYAML==6.0.1
regex==2024.4.28
requests==2.31.0
requests-oauthlib==2.0.0
rsa==4.9
scikit-learn==1.4.2
scipy==1.13.0
six==1.16.0
soundfile==0.12.1
soxr==0.3.7
tensorboard==2.14.1
tensorboard-data-server==0.7.2
tensorflow==2.14.1
tensorflow-addons==0.23.0
tensorflow-estimator==2.14.0
tensorflow-io-gcs-filesystem==0.36.0
tensorflow-macos==2.14.1
-e git+ssh://git@github.com/TensorSpeech/TensorFlowTTS.git@136877136355c82d7ba474ceb7a8f133bd84767e#egg=TensorFlowTTS
termcolor==2.4.0
TextGrid==1.6.1
threadpoolctl==3.5.0
tomli==2.0.1
tqdm==4.66.2
typeguard==2.13.3
typing_extensions==4.11.0
Unidecode==1.3.8
urllib3==2.2.1
Werkzeug==3.0.2
wrapt==1.14.1
drzraf commented 3 months ago

why not merged?