From efd61538aa773786804cfe3fd2b5ba212c775ae2 Mon Sep 17 00:00:00 2001 From: Sarvesh Date: Tue, 9 Jun 2026 15:48:49 +0530 Subject: [PATCH] Support cloning website repo to load qualitative videos locally in Colab --- demo.ipynb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/demo.ipynb b/demo.ipynb index 447adf2..28bb6ef 100644 --- a/demo.ipynb +++ b/demo.ipynb @@ -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",