Open Eldpit opened 1 week ago
same error
fixed it. Here's updated install.sh file:
#!/bin/bash
# Create a Python virtual environment
python -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install other dependencies from requirements.txt
pip install --upgrade pip
pip install -r requirements.txt
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118
python xtts_demo.py
@Aloukik21 did you have to remove all the previous installation (fresh folder) or you just updated the install.sh file and ran the install bat again?
Made the changes but no luck, same error
try
--force --no-cache-dir
in pip lines
try
--force --no-cache-dir
in pip lines
Sorry, where do I put it? into the install.sh?
Here's updated install.sh
#!/bin/bash
# Create a Python virtual environment
python -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install other dependencies from requirements.txt
pip install --upgrade pip
pip install -r requirements.txt --force --no-cache-dir
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118 --force --no-cache-dir
python xtts_demo.py
Description: When running the start.sh and install.sh scripts, I encountered an AttributeError in xtts_demo.py. The error occurs due to an incorrect import of GradScaler from torch.amp.
Steps to Reproduce:
Clone the repository. Run start.sh or install.sh.
Error Message:
Environment:
OS: UBUNTU 22.04 Python: 3.10