mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-20 13:07:52 +09:00
colab fix
This commit is contained in:
1 parent
5b2287bed0
commit
13a5b83cd2
2 files changed
+20
-6
No files matched your search
+15
-5
@@ -25,15 +25,27 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%cd /content\n",
|
||||
"\n",
|
||||
"# Remove existing directory if present\n",
|
||||
"#!rm -rf UltraSinger\n",
|
||||
"\n",
|
||||
"# Clone specific branch\n",
|
||||
"!git clone https://github.com/rakuri255/UltraSinger.git\n",
|
||||
"%cd /content/UltraSinger\n",
|
||||
"\n",
|
||||
"# Install uv\n",
|
||||
"!curl -LsSf https://astral.sh/uv/install.sh | sh\n",
|
||||
"!export PATH=\"$HOME/.local/bin:$PATH\"\n",
|
||||
"\n",
|
||||
"# Sync dependencies with uv (GPU version with CUDA)\n",
|
||||
"# Add uv to PATH and configure matplotlib\n",
|
||||
"import os\n",
|
||||
"os.environ['PATH'] = f\"/root/.local/bin:{os.environ['PATH']}\"\n",
|
||||
"os.environ['UV_LINK_MODE'] = 'copy'\n",
|
||||
"os.environ['MPLBACKEND'] = 'Agg'\n",
|
||||
"\n",
|
||||
"# Sync dependencies from pyproject.toml\n",
|
||||
"!uv sync\n",
|
||||
"\n",
|
||||
"# Install PyTorch with CUDA support\n",
|
||||
"!uv pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --force-reinstall\n",
|
||||
"\n",
|
||||
"%cd /content/UltraSinger/src"
|
||||
@@ -41,9 +53,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"!python UltraSinger.py -i https://www.youtube.com/watch?v=YwNs1Z0qRY0 -o /content/output"
|
||||
],
|
||||
"source": "!../.venv/bin/python UltraSinger.py -i https://www.youtube.com/watch?v=YwNs1Z0qRY0 -o /content/output\n",
|
||||
"metadata": {
|
||||
"id": "O0j4vUW0YAG2"
|
||||
},
|
||||
|
||||
@@ -25,7 +25,11 @@ fi
|
||||
echo "uv version:"
|
||||
uv --version
|
||||
|
||||
# Sync dependencies with uv (GPU version with CUDA)
|
||||
# Sync dependencies from pyproject.toml
|
||||
echo "Syncing dependencies from pyproject.toml..."
|
||||
uv sync
|
||||
|
||||
# Install PyTorch with CUDA support (override the CPU version from pyproject.toml)
|
||||
echo "Installing PyTorch with CUDA support..."
|
||||
uv pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --force-reinstall
|
||||
|
||||
|
||||
Reference in new issue
Block a user