Open be222bw opened 1 year ago
Use python==3.8 my guy
Use python==3.8 my guy
When I do that and then run python3.8 tortoise/do_tts.py --text "I'm going to speak this" --voice random --preset fast
I get
Traceback (most recent call last):
File "tortoise/do_tts.py", line 4, in
Install torch as recommended in the ReadMe
I install it like pip install torch torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2
, since I have AMD, but even after that I get the same error message.
Ahh man, not sure. I'm kinda new to this as well. I'm using a GT1050Ti - 4GB ram.
Sorry I can't help you further there.
Use python==3.8 my guy
I see May 3rd on posts here but am now wondering if this is from 2023. Python 3.8!?
I install it like pip install torch torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2, since I have AMD, but even after that I get the same error message.
You are likely using the pip executable for the other version of python that you have installed. There should be a pip
executable in the vicinity of the python3.8
executable (run $ which python3.8
and explore that in file explorer). Use that pip
executable to install torch
and it should work.
I installed this with pip, but when I try to run
from api import TextToSpeech, MODELS_DIR
File "/home/user/tortoise-tts/tortoise/api.py", line 24, in
from tortoise.utils.tokenizer import VoiceBpeTokenizer
File "/usr/local/lib/python3.10/dist-packages/TorToiSe-2.4.2-py3.10.egg/tortoise/utils/tokenizer.py", line 4, in
import inflect
File "/usr/local/lib/python3.10/dist-packages/inflect-6.0.4-py3.10.egg/inflect/init.py", line 76, in
from pydantic import Field, validate_arguments
File "/usr/local/lib/python3.10/dist-packages/pydantic-2.0a3-py3.10.egg/pydantic/init.py", line 11, in
from . import dataclasses
File "/usr/local/lib/python3.10/dist-packages/pydantic-2.0a3-py3.10.egg/pydantic/dataclasses.py", line 13, in
from ._internal import _config, _decorators
File "/usr/local/lib/python3.10/dist-packages/pydantic-2.0a3-py3.10.egg/pydantic/_internal/_config.py", line 11, in
from ..config import ConfigDict, ExtraValues
File "/usr/local/lib/python3.10/dist-packages/pydantic-2.0a3-py3.10.egg/pydantic/config.py", line 10, in
from .deprecated.config import BaseConfig
File "/usr/local/lib/python3.10/dist-packages/pydantic-2.0a3-py3.10.egg/pydantic/deprecated/config.py", line 6, in
from typing_extensions import deprecated
ImportError: cannot import name 'deprecated' from 'typing_extensions' (/home/user/.local/lib/python3.10/site-packages/typing_extensions.py)
python tortoise/do_tts.py --text "I'm going to speak this" --voice random --preset fast
I get File "/home/user/tortoise-tts/tortoise/do_tts.py", line 7, in