mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 05:10:18 +08:00
colab notebook robust patch (while switching mounting mode)
This commit is contained in:
parent
13d4a9ef14
commit
dd184f1d84
@ -30,13 +30,13 @@
|
|||||||
"OPTIONS['UPDATE_COMFY_UI'] = UPDATE_COMFY_UI\n",
|
"OPTIONS['UPDATE_COMFY_UI'] = UPDATE_COMFY_UI\n",
|
||||||
"\n",
|
"\n",
|
||||||
"if OPTIONS['USE_GOOGLE_DRIVE']:\n",
|
"if OPTIONS['USE_GOOGLE_DRIVE']:\n",
|
||||||
|
" !echo \"Mounting Google Drive...\"\n",
|
||||||
|
" %cd /\n",
|
||||||
|
" \n",
|
||||||
" from google.colab import drive\n",
|
" from google.colab import drive\n",
|
||||||
" drive.mount('/content/drive')\n",
|
" drive.mount('/content/drive')\n",
|
||||||
"\n",
|
"\n",
|
||||||
" global WORKSPACE\n",
|
" WORKSPACE = \"/content/drive/MyDrive/ComfyUI\"\n",
|
||||||
" WORKSPACE = str(\n",
|
|
||||||
" Path('drive', 'MyDrive', WORKSPACE).resolve()\n",
|
|
||||||
" )\n",
|
|
||||||
" %cd /content/drive/MyDrive\n",
|
" %cd /content/drive/MyDrive\n",
|
||||||
"\n",
|
"\n",
|
||||||
"![ ! -d $WORKSPACE ] && echo -= Initial setup ComfyUI =- && git clone https://github.com/comfyanonymous/ComfyUI\n",
|
"![ ! -d $WORKSPACE ] && echo -= Initial setup ComfyUI =- && git clone https://github.com/comfyanonymous/ComfyUI\n",
|
||||||
@ -46,6 +46,7 @@
|
|||||||
" !echo -= Updating ComfyUI =-\n",
|
" !echo -= Updating ComfyUI =-\n",
|
||||||
" !git pull\n",
|
" !git pull\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"!echo -= Install dependencies =-\n",
|
||||||
"!pip -q install xformers -r requirements.txt"
|
"!pip -q install xformers -r requirements.txt"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user