diff --git a/AICoverGen_colab.ipynb b/AICoverGen_colab.ipynb new file mode 100644 index 0000000..904fc9e --- /dev/null +++ b/AICoverGen_colab.ipynb @@ -0,0 +1,181 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "39k2mOCNAh6J" + }, + "source": [ + "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SociallyIneptWeeb/AICoverGen/blob/main/AICoverGen_colab.ipynb)" + ] + }, + { + "cell_type": "markdown", + "source": [ + "# AICoverGen WebUI\n", + "\n", + "Simply click `Runtime` in the top navigation bar and `Run all`. Wait for the output of the final cell to show the public gradio url and click on it." + ], + "metadata": { + "id": "YYVAKuNBc-X4" + } + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "id": "vC4gLMHI9xb3", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "af1c5cc1-182a-4fe8-92ac-b77ed41b76af" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Done Cloning Repository\n" + ] + } + ], + "source": [ + "#@title Clone repository\n", + "from IPython.display import clear_output, Javascript\n", + "import codecs\n", + "import threading\n", + "import time\n", + "cloneing=codecs.decode('uggcf://tvguho.pbz/FbpvnyylVarcgJrro/NVPbireTra.tvg','rot_13')\n", + "!git clone $cloneing HRVC\n", + "def update_timer_and_print():\n", + " global timer\n", + " while True:\n", + " hours, remainder = divmod(timer, 3600)\n", + " minutes, seconds = divmod(remainder, 60)\n", + " timer_str = f'{hours:02}:{minutes:02}:{seconds:02}'\n", + " print(f'\\rTimer: {timer_str}', end='', flush=True) # Print without a newline\n", + " time.sleep(1)\n", + " timer += 1\n", + "timer = 0\n", + "threading.Thread(target=update_timer_and_print, daemon=True).start()\n", + "%cd HRVC\n", + "clear_output()\n", + "print(\"Done Cloning Repository\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "odzpJHpr_PaF", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "3f726c75-eeef-4619-d16d-ab20ef2c033a" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Timer: 00:00:10Requirement already satisfied: pip in /usr/local/lib/python3.11/dist-packages (24.1.2)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m9.6/9.6 MB\u001b[0m \u001b[31m76.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "Timer: 00:00:29" + ] + } + ], + "source": [ + "#@title Install requirements\n", + "!pip install pip\n", + "!pip install -q -r requirements.txt\n", + "!pip install gradio-client\n", + "!pip install gradio\n", + "!pip install sox\n", + "\n", + "# install cuda fix\n", + "!python -m pip install ort-nightly-gpu --index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ort-cuda-12-nightly/pypi/simple/\n", + "clear_output()\n", + "print(\"Finished Installing Requirements\")\n", + "!sudo apt update\n", + "clear_output()\n", + "print(\"Finished Updating\")\n", + "!sudo apt install sox\n", + "clear_output()\n", + "print(\"Finished running this cell, proceed to the next cell\")" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "id": "SLWpcJc0AHSZ", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "65f19f27-f991-4f33-d2e8-7f9a9d0e6fbb" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Finished Downloading Voice Separation Model and Hubert Base Model\n" + ] + } + ], + "source": [ + "#@title Download MDXNet Vocal Separation and Hubert Base Models\n", + "models=codecs.decode('fep/qbjaybnq_zbqryf.cl','rot_13')\n", + "!python $models\n", + "clear_output()\n", + "print(\"Finished Downloading Voice Separation Model and Hubert Base Model\")" + ] + }, + { + "cell_type": "code", + "source": [ + "#@title Run WebUI\n", + "runpice=codecs.decode('fep/jrohv.cl','rot_13')\n", + "!python $runpice --share" + ], + "metadata": { + "cellView": "form", + "id": "NEglTq6Ya9d0", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "684318bd-d190-41bc-80eb-ca91c594dcb2" + }, + "execution_count": 6, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Timer: 00:15:28Traceback (most recent call last):\n", + " File \"/content/HRVC/HRVC/HRVC/src/webui.py\", line 10, in \n", + " from main import song_cover_pipeline\n", + " File \"/content/HRVC/HRVC/HRVC/src/main.py\", line 15, in \n", + " import sox\n", + "ModuleNotFoundError: No module named 'sox'\n" + ] + } + ] + } + ], + "metadata": { + "accelerator": "GPU", + "colab": { + "provenance": [] + }, + "kernelspec": { + "display_name": "Python 3", + "name": "python3" + }, + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} \ No newline at end of file