Support cloning website repo to load qualitative videos locally in Colab

This commit is contained in:
Sarvesh 2026-06-09 15:48:49 +05:30
parent 482197ab9c
commit efd61538aa

View file

@ -42,11 +42,19 @@
" IN_COLAB = False\n",
"\n",
"if IN_COLAB:\n",
" print(\"Running in Google Colab. Setting up workspace repository...\")\n",
" print(\"Running in Google Colab. Setting up workspace and website repositories...\")\n",
" import os\n",
" # 1. Clone the main Video2LoRA repository\n",
" if not os.path.exists(\"/content/Video2LoRA\"):\n",
" os.system(\"git clone -b demo https://github.com/video2lora/Video2LoRA.git\")\n",
" # 2. Clone the website repository (which hosts all qualitative video assets)\n",
" if not os.path.exists(\"/content/video2lora.github.io\"):\n",
" os.system(\"git clone https://github.com/video2lora/video2lora.github.io.git\")\n",
" # 3. Change directory to the codebase workspace\n",
" os.chdir(\"/content/Video2LoRA\")\n",
" # 4. Create a symlink to the website's media directory so video paths resolve locally\n",
" if not os.path.exists(\"media\"):\n",
" os.system(\"ln -s /content/video2lora.github.io/media media\")\n",
" print(f\"Workspace directory changed to: {os.getcwd()}\")\n",
"\n",
"# Install necessary packages\n",