mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
Support cloning website repo to load qualitative videos locally in Colab
This commit is contained in:
parent
482197ab9c
commit
efd61538aa
1 changed files with 9 additions and 1 deletions
10
demo.ipynb
10
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue