{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [], "gpuType": "T4" }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" }, "accelerator": "GPU" }, "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "id": "Hki_kX_kSbZX" }, "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", "\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" ] }, { "cell_type": "code", "source": "!../.venv/bin/python UltraSinger.py -i https://www.youtube.com/watch?v=YwNs1Z0qRY0 -o /content/output\n", "metadata": { "id": "O0j4vUW0YAG2" }, "execution_count": null, "outputs": [] } ] }