Open Johnwolf83 opened 3 months ago
this is the code I suggets to colab notebook continue working,
drive/Mydrive
mount_gdrive = True # @param{type:"boolean"}
load_samples = True # @param{type:"boolean"}
if mount_gdrive: from google.colab import drive drive.mount('/content/drive', force_remount=True)
print("Tunnels installation")
!npm install localtunnel > '/dev/null' 2>&1
!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb > '/dev/null' 2>&1 !apt install ./cloudflared-linux-amd64.deb aria2 > '/dev/null' 2>&1 !rm cloudflared-linux-amd64.deb > '/dev/null' 2>&1
print("Cloning repo") !git clone https://github.com/daswer123/xtts-webui %cd xtts-webui
print("Installing Packages and Dependencies\nPlease wait 3-5 minutes") !pip -q install -r requirements.txt !pip -q install torch==2.3.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118 !python scripts/modeldownloader.py !pip -q install --force-reinstall numpy==1.26.2 !pip install deepspeed==0.12.5
if load_samples: !mkdir speakers > '/dev/null' 2>&1 print("Downloading example samples") !wget -q -O speakers/male.wav https://github.com/daswer123/xtts-api-server/raw/main/example/male.wav !wget -q -O speakers/female.wav https://github.com/daswer123/xtts-api-server/raw/main/example/female.wav !wget -q -O speakers/female_calm.wav https://github.com/daswer123/xtts-api-server/raw/main/example/calm_female.wav
print("Done")
Hi thanks used a piece of code, colab corrected it now works
this is the code I suggets to colab notebook continue working,
@markdown #####You can enable gdrive that drag and drop samples directly through your google drive via the
drive/Mydrive
pathmount_gdrive = True # @param{type:"boolean"}
@markdown #####Download example samples: male, female and female calm voice
@markdown Read a post on how to create good samples
load_samples = True # @param{type:"boolean"}
if mount_gdrive: from google.colab import drive drive.mount('/content/drive', force_remount=True)
print("Tunnels installation")
Install tunnels
!npm install localtunnel > '/dev/null' 2>&1
Install cloudflare as alternative
!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb > '/dev/null' 2>&1 !apt install ./cloudflared-linux-amd64.deb aria2 > '/dev/null' 2>&1 !rm cloudflared-linux-amd64.deb > '/dev/null' 2>&1
print("Cloning repo") !git clone https://github.com/daswer123/xtts-webui %cd xtts-webui
print("Installing Packages and Dependencies\nPlease wait 3-5 minutes") !pip -q install -r requirements.txt !pip -q install torch==2.3.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118 !python scripts/modeldownloader.py !pip -q install --force-reinstall numpy==1.26.2 !pip install deepspeed==0.12.5
copy exaple sample
if load_samples: !mkdir speakers > '/dev/null' 2>&1 print("Downloading example samples") !wget -q -O speakers/male.wav https://github.com/daswer123/xtts-api-server/raw/main/example/male.wav !wget -q -O speakers/female.wav https://github.com/daswer123/xtts-api-server/raw/main/example/female.wav !wget -q -O speakers/female_calm.wav https://github.com/daswer123/xtts-api-server/raw/main/example/calm_female.wav
print("Done")