how to install on colab (please help totally new to this)
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Your question
hello thanks for reading,
I am pretty new to this. Also first time ever posting on github do I apologise if i have got the etiquette wrong! Idon't have an IT background just an enthusiasm for AI.
I'm really struggling to install comfy UI onto google colab. I've copied each text block into its separate code section on colab and then pressed run on each one. The first code block has an error pasted here below. I'm hoping Ive just made some novice sort of error? really confused. I managed to install fooocus on colab but that was just copy and run the notebook..
any help or guidance would be greatly appreciated.
#@title Environment Setup
OPTIONS = {}
USE_GOOGLE_DRIVE = False #@param {type:"boolean"}
UPDATE_COMFY_UI = True #@param {type:"boolean"}
WORKSPACE = 'ComfyUI'
OPTIONS['USE_GOOGLE_DRIVE'] = USE_GOOGLE_DRIVE
OPTIONS['UPDATE_COMFY_UI'] = UPDATE_COMFY_UI
if OPTIONS['USE_GOOGLE_DRIVE']:
!echo "Mounting Google Drive..."
%cd /
from google.colab import drive
drive.mount('/content/drive')
WORKSPACE = "/content/drive/MyDrive/ComfyUI"
%cd /content/drive/MyDrive
![ ! -d WORKSPACE ] && echo -= Initial setup ComfyUI =- && git clone https://github.com/comfyanonymous/ComfyUI %cd
WORKSPACE
if OPTIONS['UPDATE_COMFY_UI']:
!echo -= Updating ComfyUI =-
!git pull
!echo -= Install dependencies =-
!pip install xformers!=0.0.18 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121 --extra-index-url https://download.pytorch.org/whl/cu118 --extra-index-url https://download.pytorch.org/whl/cu117
-= Initial setup ComfyUI =-
fatal: destination path '%cd' already exists and is not an empty directory.
-= Updating ComfyUI =-
fatal: not a git repository (or any of the parent directories): .git
-= Install dependencies =-
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
### Logs
```powershell
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.