-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Training Notebook not working #707
Comments
You can reinstall torchmetrics |
Sorry I do not understand that solution. The notebook already specifies it like that, but it's still not working. What am I missing? Thank you! |
I am having the same issue with both this and the updated notebook
…On Sun, Feb 2, 2025, 10:52 AM lotex ***@***.***> wrote:
Sorry I do not understand that solution. The notebook already specifies it
like that, but it's still not working. What am I missing?
Thank you!
—
Reply to this email directly, view it on GitHub
<#707 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKPHSAEA7KG6637O66VLXL2NY5K7AVCNFSM6AAAAABVVWI3RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRZGQ2DSMRZGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am getting the same error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, thanks for the great work!
Unfortunately, I am not able to train a new voice with the Colab Notebook. I get some errors when installing the software. Because I have seen a video where that happened too and it still worked, I went on and tried to train. But the training fails with an error that it cannot import "_compare_version" from "torchmetrics.utilities.imports". I have tried different settings but always get the same error.
Output from "Install software":
/content/piper/src/python Collecting pip==24.0 Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB) Downloading pip-24.0-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 45.8 MB/s eta 0:00:00 Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 24.1.2 Uninstalling pip-24.1.2: Successfully uninstalled pip-24.1.2 Successfully installed pip-24.0 DEPRECATION: pytorch-lightning 1.7.7 has a non-standard dependency specifier torch>=1.9.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 2.5.1+cu121 requires torch==2.5.1, but you have torch 1.13.0+cu117 which is incompatible. pymc 5.19.1 requires numpy>=1.25.0, but you have numpy 1.24.0 which is incompatible. torchvision 0.20.1+cu121 requires torch==2.5.1, but you have torch 1.13.0+cu117 which is incompatible. chex 0.1.88 requires numpy>=1.24.1, but you have numpy 1.24.0 which is incompatible. imbalanced-learn 0.13.0 requires numpy<3,>=1.24.3, but you have numpy 1.24.0 which is incompatible. albucore 0.0.19 requires numpy>=1.24.4, but you have numpy 1.24.0 which is incompatible. seaborn 0.13.2 requires numpy!=1.24.0,>=1.20, but you have numpy 1.24.0 which is incompatible. blosc2 3.0.0 requires numpy>=1.25.0, but you have numpy 1.24.0 which is incompatible. albumentations 1.4.20 requires numpy>=1.24.4, but you have numpy 1.24.0 which is incompatible. ERROR: Could not find a version that satisfies the requirement torchtext==0.14.0 (from versions: 0.1.1, 0.2.0, 0.2.1, 0.2.3, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.17.2, 0.18.0) ERROR: No matching distribution found for torchtext==0.14.0 ERROR: Ignored the following yanked versions: 2.0.0 ERROR: Could not find a version that satisfies the requirement torchaudio==0.13.0 (from versions: 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1) ERROR: No matching distribution found for torchaudio==0.13.0 Requirement already satisfied: gdown in /usr/local/lib/python3.11/dist-packages (5.2.0) Requirement already satisfied: transformers in /usr/local/lib/python3.11/dist-packages (4.47.1) Collecting transformers Downloading transformers-4.48.1-py3-none-any.whl.metadata (44 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.4/44.4 kB 2.0 MB/s eta 0:00:00 Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.11/dist-packages (from gdown) (4.12.3) Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from gdown) (3.16.1) Requirement already satisfied: requests[socks] in /usr/local/lib/python3.11/dist-packages (from gdown) (2.32.3) Requirement already satisfied: tqdm in /usr/local/lib/python3.11/dist-packages (from gdown) (4.67.1) Requirement already satisfied: huggingface-hub<1.0,>=0.24.0 in /usr/local/lib/python3.11/dist-packages (from transformers) (0.27.1) Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.11/dist-packages (from transformers) (1.24.0) Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.11/dist-packages (from transformers) (24.2) Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.11/dist-packages (from transformers) (6.0.2) Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.11/dist-packages (from transformers) (2024.11.6) Requirement already satisfied: tokenizers<0.22,>=0.21 in /usr/local/lib/python3.11/dist-packages (from transformers) (0.21.0) Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.11/dist-packages (from transformers) (0.5.2) Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub<1.0,>=0.24.0->transformers) (2024.10.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub<1.0,>=0.24.0->transformers) (4.12.2) Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.11/dist-packages (from beautifulsoup4->gdown) (2.6) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests[socks]->gdown) (3.4.1) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests[socks]->gdown) (3.10) Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests[socks]->gdown) (2.3.0) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests[socks]->gdown) (2024.12.14) Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /usr/local/lib/python3.11/dist-packages (from requests[socks]->gdown) (1.7.1) Downloading transformers-4.48.1-py3-none-any.whl (9.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.7/9.7 MB 39.3 MB/s eta 0:00:00 DEPRECATION: pytorch-lightning 1.7.7 has a non-standard dependency specifier torch>=1.9.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 Installing collected packages: transformers Attempting uninstall: transformers Found existing installation: transformers 4.47.1 Uninstalling transformers-4.47.1: Successfully uninstalled transformers-4.47.1 Successfully installed transformers-4.48.1 Compiling /content/piper/src/python/piper_train/vits/monotonic_align/core.pyx because it changed. [1/1] Cythonizing /content/piper/src/python/piper_train/vits/monotonic_align/core.pyx /usr/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /content/piper/src/python/piper_train/vits/monotonic_align/core.pyx tree = Parsing.p_module(s, pxd, full_module_name) performance hint: core.pyx:7:5: Exception check on 'maximum_path_each' will always require the GIL to be acquired. Possible solutions: 1. Declare 'maximum_path_each' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on 'maximum_path_each' to allow an error code to be returned. performance hint: core.pyx:38:6: Exception check on 'maximum_path_c' will always require the GIL to be acquired. Possible solutions: 1. Declare 'maximum_path_c' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on 'maximum_path_c' to allow an error code to be returned. performance hint: core.pyx:42:21: Exception check after calling 'maximum_path_each' will always require the GIL to be acquired. Possible solutions: 1. Declare 'maximum_path_each' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on 'maximum_path_each' to allow an error code to be returned. Done!
Output from "6. Train":
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/content/piper/src/python/piper_train/__main__.py", line 7, in <module> from pytorch_lightning import Trainer File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/__init__.py", line 34, in <module> from pytorch_lightning.callbacks import Callback # noqa: E402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/__init__.py", line 25, in <module> from pytorch_lightning.callbacks.progress import ProgressBarBase, RichProgressBar, TQDMProgressBar File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/progress/__init__.py", line 22, in <module> from pytorch_lightning.callbacks.progress.rich_progress import RichProgressBar # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/progress/rich_progress.py", line 20, in <module> from torchmetrics.utilities.imports import _compare_version ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (/usr/local/lib/python3.11/dist-packages/torchmetrics/utilities/imports.py)
The text was updated successfully, but these errors were encountered: