thamnt commited on
Commit
fc01aa4
·
verified ·
1 Parent(s): b13a2be

Upload comfyui_colab.ipynb

Browse files
Files changed (1) hide show
  1. comfyui_colab.ipynb +523 -0
comfyui_colab.ipynb ADDED
@@ -0,0 +1,523 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "metadata": {
6
+ "id": "aaaaaaaaaa"
7
+ },
8
+ "source": [
9
+ "Git clone the repo and install the requirements. (ignore the pip errors about protobuf)"
10
+ ]
11
+ },
12
+ {
13
+ "cell_type": "code",
14
+ "execution_count": 1,
15
+ "metadata": {
16
+ "id": "bbbbbbbbbb",
17
+ "colab": {
18
+ "base_uri": "https://localhost:8080/"
19
+ },
20
+ "outputId": "780bb97a-8ed2-4b52-b8e6-8ccd4b1e3c75"
21
+ },
22
+ "outputs": [
23
+ {
24
+ "output_type": "stream",
25
+ "name": "stdout",
26
+ "text": [
27
+ "-= Initial setup ComfyUI =-\n",
28
+ "Cloning into 'ComfyUI'...\n",
29
+ "remote: Enumerating objects: 18468, done.\u001b[K\n",
30
+ "remote: Counting objects: 100% (200/200), done.\u001b[K\n",
31
+ "remote: Compressing objects: 100% (132/132), done.\u001b[K\n",
32
+ "remote: Total 18468 (delta 139), reused 68 (delta 68), pack-reused 18268 (from 4)\u001b[K\n",
33
+ "Receiving objects: 100% (18468/18468), 67.73 MiB | 8.70 MiB/s, done.\n",
34
+ "Resolving deltas: 100% (12371/12371), done.\n",
35
+ "/content/ComfyUI\n",
36
+ "-= Updating ComfyUI =-\n",
37
+ "Already up to date.\n",
38
+ "-= Install dependencies =-\n",
39
+ "Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121, https://download.pytorch.org/whl/cu118, https://download.pytorch.org/whl/cu117\n",
40
+ "Collecting xformers!=0.0.18\n",
41
+ " Downloading https://download.pytorch.org/whl/cu118/xformers-0.0.29.post3-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (1.0 kB)\n",
42
+ "Collecting comfyui-frontend-package==1.14.6 (from -r requirements.txt (line 1))\n",
43
+ " Downloading comfyui_frontend_package-1.14.6-py3-none-any.whl.metadata (117 bytes)\n",
44
+ "Requirement already satisfied: torch in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 2)) (2.6.0+cu124)\n",
45
+ "Collecting torchsde (from -r requirements.txt (line 3))\n",
46
+ " Downloading torchsde-0.2.6-py3-none-any.whl.metadata (5.3 kB)\n",
47
+ "Requirement already satisfied: torchvision in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 4)) (0.21.0+cu124)\n",
48
+ "Requirement already satisfied: torchaudio in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 5)) (2.6.0+cu124)\n",
49
+ "Requirement already satisfied: numpy>=1.25.0 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 6)) (2.0.2)\n",
50
+ "Requirement already satisfied: einops in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 7)) (0.8.1)\n",
51
+ "Requirement already satisfied: transformers>=4.28.1 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 8)) (4.50.3)\n",
52
+ "Requirement already satisfied: tokenizers>=0.13.3 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 9)) (0.21.1)\n",
53
+ "Requirement already satisfied: sentencepiece in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 10)) (0.2.0)\n",
54
+ "Requirement already satisfied: safetensors>=0.4.2 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 11)) (0.5.3)\n",
55
+ "Requirement already satisfied: aiohttp>=3.11.8 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 12)) (3.11.15)\n",
56
+ "Requirement already satisfied: yarl>=1.18.0 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 13)) (1.18.3)\n",
57
+ "Requirement already satisfied: pyyaml in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 14)) (6.0.2)\n",
58
+ "Requirement already satisfied: Pillow in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 15)) (11.1.0)\n",
59
+ "Requirement already satisfied: scipy in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 16)) (1.14.1)\n",
60
+ "Requirement already satisfied: tqdm in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 17)) (4.67.1)\n",
61
+ "Requirement already satisfied: psutil in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 18)) (5.9.5)\n",
62
+ "Collecting kornia>=0.7.1 (from -r requirements.txt (line 21))\n",
63
+ " Downloading kornia-0.8.0-py2.py3-none-any.whl.metadata (17 kB)\n",
64
+ "Collecting spandrel (from -r requirements.txt (line 22))\n",
65
+ " Downloading spandrel-0.4.1-py3-none-any.whl.metadata (15 kB)\n",
66
+ "Requirement already satisfied: soundfile in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 23)) (0.13.1)\n",
67
+ "Collecting av (from -r requirements.txt (line 24))\n",
68
+ " Downloading av-14.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.7 kB)\n",
69
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (3.18.0)\n",
70
+ "Requirement already satisfied: typing-extensions>=4.10.0 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (4.13.1)\n",
71
+ "Requirement already satisfied: networkx in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (3.4.2)\n",
72
+ "Requirement already satisfied: jinja2 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (3.1.6)\n",
73
+ "Requirement already satisfied: fsspec in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (2025.3.2)\n",
74
+ "Collecting nvidia-cuda-nvrtc-cu12==12.4.127 (from torch->-r requirements.txt (line 2))\n",
75
+ " Downloading nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
76
+ "Collecting nvidia-cuda-runtime-cu12==12.4.127 (from torch->-r requirements.txt (line 2))\n",
77
+ " Downloading nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
78
+ "Collecting nvidia-cuda-cupti-cu12==12.4.127 (from torch->-r requirements.txt (line 2))\n",
79
+ " Downloading nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)\n",
80
+ "Collecting nvidia-cudnn-cu12==9.1.0.70 (from torch->-r requirements.txt (line 2))\n",
81
+ " Downloading https://download.pytorch.org/whl/cu121/nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl (664.8 MB)\n",
82
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m664.8/664.8 MB\u001b[0m \u001b[31m2.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
83
+ "\u001b[?25hCollecting nvidia-cublas-cu12==12.4.5.8 (from torch->-r requirements.txt (line 2))\n",
84
+ " Downloading nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
85
+ "Collecting nvidia-cufft-cu12==11.2.1.3 (from torch->-r requirements.txt (line 2))\n",
86
+ " Downloading nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
87
+ "Collecting nvidia-curand-cu12==10.3.5.147 (from torch->-r requirements.txt (line 2))\n",
88
+ " Downloading nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
89
+ "Collecting nvidia-cusolver-cu12==11.6.1.9 (from torch->-r requirements.txt (line 2))\n",
90
+ " Downloading nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)\n",
91
+ "Collecting nvidia-cusparse-cu12==12.3.1.170 (from torch->-r requirements.txt (line 2))\n",
92
+ " Downloading nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)\n",
93
+ "Requirement already satisfied: nvidia-cusparselt-cu12==0.6.2 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (0.6.2)\n",
94
+ "Requirement already satisfied: nvidia-nccl-cu12==2.21.5 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (2.21.5)\n",
95
+ "Requirement already satisfied: nvidia-nvtx-cu12==12.4.127 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (12.4.127)\n",
96
+ "Collecting nvidia-nvjitlink-cu12==12.4.127 (from torch->-r requirements.txt (line 2))\n",
97
+ " Downloading nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)\n",
98
+ "Requirement already satisfied: triton==3.2.0 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (3.2.0)\n",
99
+ "Requirement already satisfied: sympy==1.13.1 in /usr/local/lib/python3.11/dist-packages (from torch->-r requirements.txt (line 2)) (1.13.1)\n",
100
+ "Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.11/dist-packages (from sympy==1.13.1->torch->-r requirements.txt (line 2)) (1.3.0)\n",
101
+ "Collecting trampoline>=0.1.2 (from torchsde->-r requirements.txt (line 3))\n",
102
+ " Downloading trampoline-0.1.2-py3-none-any.whl.metadata (10 kB)\n",
103
+ "Requirement already satisfied: huggingface-hub<1.0,>=0.26.0 in /usr/local/lib/python3.11/dist-packages (from transformers>=4.28.1->-r requirements.txt (line 8)) (0.30.1)\n",
104
+ "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.11/dist-packages (from transformers>=4.28.1->-r requirements.txt (line 8)) (24.2)\n",
105
+ "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.11/dist-packages (from transformers>=4.28.1->-r requirements.txt (line 8)) (2024.11.6)\n",
106
+ "Requirement already satisfied: requests in /usr/local/lib/python3.11/dist-packages (from transformers>=4.28.1->-r requirements.txt (line 8)) (2.32.3)\n",
107
+ "Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp>=3.11.8->-r requirements.txt (line 12)) (2.6.1)\n",
108
+ "Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.11/dist-packages (from aiohttp>=3.11.8->-r requirements.txt (line 12)) (1.3.2)\n",
109
+ "Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp>=3.11.8->-r requirements.txt (line 12)) (25.3.0)\n",
110
+ "Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.11/dist-packages (from aiohttp>=3.11.8->-r requirements.txt (line 12)) (1.5.0)\n",
111
+ "Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.11/dist-packages (from aiohttp>=3.11.8->-r requirements.txt (line 12)) (6.3.2)\n",
112
+ "Requirement already satisfied: propcache>=0.2.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp>=3.11.8->-r requirements.txt (line 12)) (0.3.1)\n",
113
+ "Requirement already satisfied: idna>=2.0 in /usr/local/lib/python3.11/dist-packages (from yarl>=1.18.0->-r requirements.txt (line 13)) (3.10)\n",
114
+ "Collecting kornia_rs>=0.1.0 (from kornia>=0.7.1->-r requirements.txt (line 21))\n",
115
+ " Downloading kornia_rs-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)\n",
116
+ "Requirement already satisfied: cffi>=1.0 in /usr/local/lib/python3.11/dist-packages (from soundfile->-r requirements.txt (line 23)) (1.17.1)\n",
117
+ "Requirement already satisfied: pycparser in /usr/local/lib/python3.11/dist-packages (from cffi>=1.0->soundfile->-r requirements.txt (line 23)) (2.22)\n",
118
+ "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/dist-packages (from jinja2->torch->-r requirements.txt (line 2)) (3.0.2)\n",
119
+ "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests->transformers>=4.28.1->-r requirements.txt (line 8)) (3.4.1)\n",
120
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests->transformers>=4.28.1->-r requirements.txt (line 8)) (2.3.0)\n",
121
+ "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests->transformers>=4.28.1->-r requirements.txt (line 8)) (2025.1.31)\n",
122
+ "Downloading comfyui_frontend_package-1.14.6-py3-none-any.whl (34.9 MB)\n",
123
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m34.9/34.9 MB\u001b[0m \u001b[31m50.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
124
+ "\u001b[?25hDownloading https://download.pytorch.org/whl/cu118/xformers-0.0.29.post3-cp311-cp311-manylinux_2_28_x86_64.whl (13.9 MB)\n",
125
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.9/13.9 MB\u001b[0m \u001b[31m78.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
126
+ "\u001b[?25hDownloading nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl (363.4 MB)\n",
127
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m363.4/363.4 MB\u001b[0m \u001b[31m4.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
128
+ "\u001b[?25hDownloading nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (13.8 MB)\n",
129
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.8/13.8 MB\u001b[0m \u001b[31m112.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
130
+ "\u001b[?25hDownloading nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (24.6 MB)\n",
131
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m24.6/24.6 MB\u001b[0m \u001b[31m86.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
132
+ "\u001b[?25hDownloading nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (883 kB)\n",
133
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m883.7/883.7 kB\u001b[0m \u001b[31m55.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
134
+ "\u001b[?25hDownloading nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl (211.5 MB)\n",
135
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m211.5/211.5 MB\u001b[0m \u001b[31m5.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
136
+ "\u001b[?25hDownloading nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl (56.3 MB)\n",
137
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m56.3/56.3 MB\u001b[0m \u001b[31m11.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
138
+ "\u001b[?25hDownloading nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl (127.9 MB)\n",
139
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m127.9/127.9 MB\u001b[0m \u001b[31m7.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
140
+ "\u001b[?25hDownloading nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl (207.5 MB)\n",
141
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m207.5/207.5 MB\u001b[0m \u001b[31m5.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
142
+ "\u001b[?25hDownloading nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (21.1 MB)\n",
143
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.1/21.1 MB\u001b[0m \u001b[31m94.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
144
+ "\u001b[?25hDownloading torchsde-0.2.6-py3-none-any.whl (61 kB)\n",
145
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.2/61.2 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
146
+ "\u001b[?25hDownloading kornia-0.8.0-py2.py3-none-any.whl (1.1 MB)\n",
147
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.1/1.1 MB\u001b[0m \u001b[31m59.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
148
+ "\u001b[?25hDownloading spandrel-0.4.1-py3-none-any.whl (305 kB)\n",
149
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m305.2/305.2 kB\u001b[0m \u001b[31m27.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
150
+ "\u001b[?25hDownloading av-14.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (35.2 MB)\n",
151
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m35.2/35.2 MB\u001b[0m \u001b[31m17.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
152
+ "\u001b[?25hDownloading kornia_rs-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)\n",
153
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m85.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
154
+ "\u001b[?25hDownloading trampoline-0.1.2-py3-none-any.whl (5.2 kB)\n",
155
+ "Installing collected packages: trampoline, nvidia-nvjitlink-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, kornia_rs, comfyui-frontend-package, av, nvidia-cusparse-cu12, nvidia-cudnn-cu12, nvidia-cusolver-cu12, xformers, torchsde, kornia, spandrel\n",
156
+ " Attempting uninstall: nvidia-nvjitlink-cu12\n",
157
+ " Found existing installation: nvidia-nvjitlink-cu12 12.5.82\n",
158
+ " Uninstalling nvidia-nvjitlink-cu12-12.5.82:\n",
159
+ " Successfully uninstalled nvidia-nvjitlink-cu12-12.5.82\n",
160
+ " Attempting uninstall: nvidia-curand-cu12\n",
161
+ " Found existing installation: nvidia-curand-cu12 10.3.6.82\n",
162
+ " Uninstalling nvidia-curand-cu12-10.3.6.82:\n",
163
+ " Successfully uninstalled nvidia-curand-cu12-10.3.6.82\n",
164
+ " Attempting uninstall: nvidia-cufft-cu12\n",
165
+ " Found existing installation: nvidia-cufft-cu12 11.2.3.61\n",
166
+ " Uninstalling nvidia-cufft-cu12-11.2.3.61:\n",
167
+ " Successfully uninstalled nvidia-cufft-cu12-11.2.3.61\n",
168
+ " Attempting uninstall: nvidia-cuda-runtime-cu12\n",
169
+ " Found existing installation: nvidia-cuda-runtime-cu12 12.5.82\n",
170
+ " Uninstalling nvidia-cuda-runtime-cu12-12.5.82:\n",
171
+ " Successfully uninstalled nvidia-cuda-runtime-cu12-12.5.82\n",
172
+ " Attempting uninstall: nvidia-cuda-nvrtc-cu12\n",
173
+ " Found existing installation: nvidia-cuda-nvrtc-cu12 12.5.82\n",
174
+ " Uninstalling nvidia-cuda-nvrtc-cu12-12.5.82:\n",
175
+ " Successfully uninstalled nvidia-cuda-nvrtc-cu12-12.5.82\n",
176
+ " Attempting uninstall: nvidia-cuda-cupti-cu12\n",
177
+ " Found existing installation: nvidia-cuda-cupti-cu12 12.5.82\n",
178
+ " Uninstalling nvidia-cuda-cupti-cu12-12.5.82:\n",
179
+ " Successfully uninstalled nvidia-cuda-cupti-cu12-12.5.82\n",
180
+ " Attempting uninstall: nvidia-cublas-cu12\n",
181
+ " Found existing installation: nvidia-cublas-cu12 12.5.3.2\n",
182
+ " Uninstalling nvidia-cublas-cu12-12.5.3.2:\n",
183
+ " Successfully uninstalled nvidia-cublas-cu12-12.5.3.2\n",
184
+ " Attempting uninstall: nvidia-cusparse-cu12\n",
185
+ " Found existing installation: nvidia-cusparse-cu12 12.5.1.3\n",
186
+ " Uninstalling nvidia-cusparse-cu12-12.5.1.3:\n",
187
+ " Successfully uninstalled nvidia-cusparse-cu12-12.5.1.3\n",
188
+ " Attempting uninstall: nvidia-cudnn-cu12\n",
189
+ " Found existing installation: nvidia-cudnn-cu12 9.3.0.75\n",
190
+ " Uninstalling nvidia-cudnn-cu12-9.3.0.75:\n",
191
+ " Successfully uninstalled nvidia-cudnn-cu12-9.3.0.75\n",
192
+ " Attempting uninstall: nvidia-cusolver-cu12\n",
193
+ " Found existing installation: nvidia-cusolver-cu12 11.6.3.83\n",
194
+ " Uninstalling nvidia-cusolver-cu12-11.6.3.83:\n",
195
+ " Successfully uninstalled nvidia-cusolver-cu12-11.6.3.83\n",
196
+ "Successfully installed av-14.3.0 comfyui-frontend-package-1.14.6 kornia-0.8.0 kornia_rs-0.1.8 nvidia-cublas-cu12-12.4.5.8 nvidia-cuda-cupti-cu12-12.4.127 nvidia-cuda-nvrtc-cu12-12.4.127 nvidia-cuda-runtime-cu12-12.4.127 nvidia-cudnn-cu12-9.1.0.70 nvidia-cufft-cu12-11.2.1.3 nvidia-curand-cu12-10.3.5.147 nvidia-cusolver-cu12-11.6.1.9 nvidia-cusparse-cu12-12.3.1.170 nvidia-nvjitlink-cu12-12.4.127 spandrel-0.4.1 torchsde-0.2.6 trampoline-0.1.2 xformers-0.0.29.post3\n"
197
+ ]
198
+ }
199
+ ],
200
+ "source": [
201
+ "#@title Environment Setup\n",
202
+ "\n",
203
+ "\n",
204
+ "OPTIONS = {}\n",
205
+ "\n",
206
+ "USE_GOOGLE_DRIVE = False #@param {type:\"boolean\"}\n",
207
+ "UPDATE_COMFY_UI = True #@param {type:\"boolean\"}\n",
208
+ "WORKSPACE = 'ComfyUI'\n",
209
+ "OPTIONS['USE_GOOGLE_DRIVE'] = USE_GOOGLE_DRIVE\n",
210
+ "OPTIONS['UPDATE_COMFY_UI'] = UPDATE_COMFY_UI\n",
211
+ "\n",
212
+ "if OPTIONS['USE_GOOGLE_DRIVE']:\n",
213
+ " !echo \"Mounting Google Drive...\"\n",
214
+ " %cd /\n",
215
+ "\n",
216
+ " from google.colab import drive\n",
217
+ " drive.mount('/content/drive')\n",
218
+ "\n",
219
+ " WORKSPACE = \"/content/drive/MyDrive/ComfyUI\"\n",
220
+ " %cd /content/drive/MyDrive\n",
221
+ "\n",
222
+ "![ ! -d $WORKSPACE ] && echo -= Initial setup ComfyUI =- && git clone https://github.com/comfyanonymous/ComfyUI\n",
223
+ "%cd $WORKSPACE\n",
224
+ "\n",
225
+ "if OPTIONS['UPDATE_COMFY_UI']:\n",
226
+ " !echo -= Updating ComfyUI =-\n",
227
+ " !git pull\n",
228
+ "\n",
229
+ "!echo -= Install dependencies =-\n",
230
+ "!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"
231
+ ]
232
+ },
233
+ {
234
+ "cell_type": "markdown",
235
+ "metadata": {
236
+ "id": "cccccccccc"
237
+ },
238
+ "source": [
239
+ "Download some models/checkpoints/vae or custom comfyui nodes (uncomment the commands for the ones you want)"
240
+ ]
241
+ },
242
+ {
243
+ "cell_type": "code",
244
+ "execution_count": 2,
245
+ "metadata": {
246
+ "id": "dddddddddd",
247
+ "colab": {
248
+ "base_uri": "https://localhost:8080/"
249
+ },
250
+ "outputId": "4413a4ad-08f4-4ed9-e7ca-e054a9aa7eb0"
251
+ },
252
+ "outputs": [
253
+ {
254
+ "output_type": "stream",
255
+ "name": "stdout",
256
+ "text": [
257
+ "--2025-04-11 06:45:54-- https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/resolve/main/v1-5-pruned-emaonly-fp16.safetensors\n",
258
+ "Resolving huggingface.co (huggingface.co)... 3.163.189.90, 3.163.189.114, 3.163.189.74, ...\n",
259
+ "Connecting to huggingface.co (huggingface.co)|3.163.189.90|:443... connected.\n",
260
+ "HTTP request sent, awaiting response... 302 Found\n",
261
+ "Location: https://cdn-lfs-us-1.hf.co/repos/f5/2e/f52e0ca18fd9491c78516fb4c4b063c960ed7a3b061f667ff8730433c643cf05/e9476a13728cd75d8279f6ec8bad753a66a1957ca375a1464dc63b37db6e3916?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27v1-5-pruned-emaonly-fp16.safetensors%3B+filename%3D%22v1-5-pruned-emaonly-fp16.safetensors%22%3B&Expires=1744357554&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc0NDM1NzU1NH19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmhmLmNvL3JlcG9zL2Y1LzJlL2Y1MmUwY2ExOGZkOTQ5MWM3ODUxNmZiNGM0YjA2M2M5NjBlZDdhM2IwNjFmNjY3ZmY4NzMwNDMzYzY0M2NmMDUvZTk0NzZhMTM3MjhjZDc1ZDgyNzlmNmVjOGJhZDc1M2E2NmExOTU3Y2EzNzVhMTQ2NGRjNjNiMzdkYjZlMzkxNj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoifV19&Signature=c9-6hT070%7ENaeMGzNe49dP%7ErrSmcLKDwhDq46tJzq1x4qKUmGJr-UNhyIvVHzqxCeqAXqbzNdme9NHu%7EdjAupUkoEObOkcOwXWslNuFxiDnvxApnm5%7ENgsA2ZDXExr3ujplJYYqD4eu1I7EYezW4IGUZclxgkhsDF8OTEM5yJB3YEKYW8lBsLzZ%7EMYdujG5yfxjtiq0StESi1UlTqIsLCJwkcV4IIg3H9Gmorav4RhBLWDTxq48WbJcS1iGMdosemQgFfeU4ylKG6DB7wPgXbER5h3w5NhyX-L9X0akf6HXlEFlY9RZTN%7Ea6fxJbmHvyEw-Fic7O8XYUoZ9vqZk0sw__&Key-Pair-Id=K24J24Z295AEI9 [following]\n",
262
+ "--2025-04-11 06:45:54-- https://cdn-lfs-us-1.hf.co/repos/f5/2e/f52e0ca18fd9491c78516fb4c4b063c960ed7a3b061f667ff8730433c643cf05/e9476a13728cd75d8279f6ec8bad753a66a1957ca375a1464dc63b37db6e3916?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27v1-5-pruned-emaonly-fp16.safetensors%3B+filename%3D%22v1-5-pruned-emaonly-fp16.safetensors%22%3B&Expires=1744357554&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc0NDM1NzU1NH19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmhmLmNvL3JlcG9zL2Y1LzJlL2Y1MmUwY2ExOGZkOTQ5MWM3ODUxNmZiNGM0YjA2M2M5NjBlZDdhM2IwNjFmNjY3ZmY4NzMwNDMzYzY0M2NmMDUvZTk0NzZhMTM3MjhjZDc1ZDgyNzlmNmVjOGJhZDc1M2E2NmExOTU3Y2EzNzVhMTQ2NGRjNjNiMzdkYjZlMzkxNj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoifV19&Signature=c9-6hT070%7ENaeMGzNe49dP%7ErrSmcLKDwhDq46tJzq1x4qKUmGJr-UNhyIvVHzqxCeqAXqbzNdme9NHu%7EdjAupUkoEObOkcOwXWslNuFxiDnvxApnm5%7ENgsA2ZDXExr3ujplJYYqD4eu1I7EYezW4IGUZclxgkhsDF8OTEM5yJB3YEKYW8lBsLzZ%7EMYdujG5yfxjtiq0StESi1UlTqIsLCJwkcV4IIg3H9Gmorav4RhBLWDTxq48WbJcS1iGMdosemQgFfeU4ylKG6DB7wPgXbER5h3w5NhyX-L9X0akf6HXlEFlY9RZTN%7Ea6fxJbmHvyEw-Fic7O8XYUoZ9vqZk0sw__&Key-Pair-Id=K24J24Z295AEI9\n",
263
+ "Resolving cdn-lfs-us-1.hf.co (cdn-lfs-us-1.hf.co)... 3.163.158.76, 3.163.158.82, 3.163.158.13, ...\n",
264
+ "Connecting to cdn-lfs-us-1.hf.co (cdn-lfs-us-1.hf.co)|3.163.158.76|:443... connected.\n",
265
+ "HTTP request sent, awaiting response... 200 OK\n",
266
+ "Length: 2132696762 (2.0G) [binary/octet-stream]\n",
267
+ "Saving to: ‘./models/checkpoints/v1-5-pruned-emaonly-fp16.safetensors’\n",
268
+ "\n",
269
+ "v1-5-pruned-emaonly 100%[===================>] 1.99G 222MB/s in 11s \n",
270
+ "\n",
271
+ "2025-04-11 06:46:05 (184 MB/s) - ‘./models/checkpoints/v1-5-pruned-emaonly-fp16.safetensors’ saved [2132696762/2132696762]\n",
272
+ "\n",
273
+ "--2025-04-11 06:46:05-- https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors\n",
274
+ "Resolving huggingface.co (huggingface.co)... 3.163.189.37, 3.163.189.74, 3.163.189.114, ...\n",
275
+ "Connecting to huggingface.co (huggingface.co)|3.163.189.37|:443... connected.\n",
276
+ "HTTP request sent, awaiting response... 302 Found\n",
277
+ "Location: https://cdn-lfs.hf.co/repos/ec/ee/eceee26c5834d8a75cf04eeb17dfc06d1d5fe1d80c2f19520b148c11e2e98c45/735e4c3a447a3255760d7f86845f09f937809baa529c17370d83e4c3758f3c75?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27vae-ft-mse-840000-ema-pruned.safetensors%3B+filename%3D%22vae-ft-mse-840000-ema-pruned.safetensors%22%3B&Expires=1744357566&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc0NDM1NzU2Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5oZi5jby9yZXBvcy9lYy9lZS9lY2VlZTI2YzU4MzRkOGE3NWNmMDRlZWIxN2RmYzA2ZDFkNWZlMWQ4MGMyZjE5NTIwYjE0OGMxMWUyZTk4YzQ1LzczNWU0YzNhNDQ3YTMyNTU3NjBkN2Y4Njg0NWYwOWY5Mzc4MDliYWE1MjljMTczNzBkODNlNGMzNzU4ZjNjNzU%7EcmVzcG9uc2UtY29udGVudC1kaXNwb3NpdGlvbj0qIn1dfQ__&Signature=fG1jsp07YS-buMd79hRUPtwg%7ENldQWzyrkcWFCHShf-uIM1NScLFoUMx0zyRrB4tcr4ZZF9OzRWF1GAtIW6T539-3ehNSnBJ8eVyDcWQQElCg-SRR2YRHsiJXc0s93iYVQR-EUZJz7j%7EU9iZ6dZfOLRiRYYFHTCGMMWfEWkEbkK4HfXr3glUB4Wldq29t4jzJmMKzDnsvM5twUJpr5EJiasHqxxb21os36RPkh8ZmN%7ER7MEEKaXvDWeFh9Hy8cyMyTzC%7E1c8Bz8i0P3h5PIvoXtLqVHj5dq1tFO-rUFNGQ1WFVslasb2LzoIw6GNRqSZy9OF7nIuFcf2Q7hJ%7ERl2bw__&Key-Pair-Id=K3RPWS32NSSJCE [following]\n",
278
+ "--2025-04-11 06:46:06-- https://cdn-lfs.hf.co/repos/ec/ee/eceee26c5834d8a75cf04eeb17dfc06d1d5fe1d80c2f19520b148c11e2e98c45/735e4c3a447a3255760d7f86845f09f937809baa529c17370d83e4c3758f3c75?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27vae-ft-mse-840000-ema-pruned.safetensors%3B+filename%3D%22vae-ft-mse-840000-ema-pruned.safetensors%22%3B&Expires=1744357566&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc0NDM1NzU2Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5oZi5jby9yZXBvcy9lYy9lZS9lY2VlZTI2YzU4MzRkOGE3NWNmMDRlZWIxN2RmYzA2ZDFkNWZlMWQ4MGMyZjE5NTIwYjE0OGMxMWUyZTk4YzQ1LzczNWU0YzNhNDQ3YTMyNTU3NjBkN2Y4Njg0NWYwOWY5Mzc4MDliYWE1MjljMTczNzBkODNlNGMzNzU4ZjNjNzU%7EcmVzcG9uc2UtY29udGVudC1kaXNwb3NpdGlvbj0qIn1dfQ__&Signature=fG1jsp07YS-buMd79hRUPtwg%7ENldQWzyrkcWFCHShf-uIM1NScLFoUMx0zyRrB4tcr4ZZF9OzRWF1GAtIW6T539-3ehNSnBJ8eVyDcWQQElCg-SRR2YRHsiJXc0s93iYVQR-EUZJz7j%7EU9iZ6dZfOLRiRYYFHTCGMMWfEWkEbkK4HfXr3glUB4Wldq29t4jzJmMKzDnsvM5twUJpr5EJiasHqxxb21os36RPkh8ZmN%7ER7MEEKaXvDWeFh9Hy8cyMyTzC%7E1c8Bz8i0P3h5PIvoXtLqVHj5dq1tFO-rUFNGQ1WFVslasb2LzoIw6GNRqSZy9OF7nIuFcf2Q7hJ%7ERl2bw__&Key-Pair-Id=K3RPWS32NSSJCE\n",
279
+ "Resolving cdn-lfs.hf.co (cdn-lfs.hf.co)... 18.238.238.84, 18.238.238.89, 18.238.238.41, ...\n",
280
+ "Connecting to cdn-lfs.hf.co (cdn-lfs.hf.co)|18.238.238.84|:443... connected.\n",
281
+ "HTTP request sent, awaiting response... 200 OK\n",
282
+ "Length: 334641190 (319M) [binary/octet-stream]\n",
283
+ "Saving to: ‘./models/vae/vae-ft-mse-840000-ema-pruned.safetensors’\n",
284
+ "\n",
285
+ "vae-ft-mse-840000-e 100%[===================>] 319.14M 286MB/s in 1.1s \n",
286
+ "\n",
287
+ "2025-04-11 06:46:07 (286 MB/s) - ‘./models/vae/vae-ft-mse-840000-ema-pruned.safetensors’ saved [334641190/334641190]\n",
288
+ "\n"
289
+ ]
290
+ }
291
+ ],
292
+ "source": [
293
+ "# Checkpoints\n",
294
+ "\n",
295
+ "### SDXL\n",
296
+ "### I recommend these workflow examples: https://comfyanonymous.github.io/ComfyUI_examples/sdxl/\n",
297
+ "\n",
298
+ "#!wget -c https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors -P ./models/checkpoints/\n",
299
+ "#!wget -c https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors -P ./models/checkpoints/\n",
300
+ "\n",
301
+ "# SDXL ReVision\n",
302
+ "#!wget -c https://huggingface.co/comfyanonymous/clip_vision_g/resolve/main/clip_vision_g.safetensors -P ./models/clip_vision/\n",
303
+ "\n",
304
+ "# SD1.5\n",
305
+ "!wget -c https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/resolve/main/v1-5-pruned-emaonly-fp16.safetensors -P ./models/checkpoints/\n",
306
+ "\n",
307
+ "# SD2\n",
308
+ "#!wget -c https://huggingface.co/stabilityai/stable-diffusion-2-1-base/resolve/main/v2-1_512-ema-pruned.safetensors -P ./models/checkpoints/\n",
309
+ "#!wget -c https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.safetensors -P ./models/checkpoints/\n",
310
+ "\n",
311
+ "# Some SD1.5 anime style\n",
312
+ "#!wget -c https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix2/AbyssOrangeMix2_hard.safetensors -P ./models/checkpoints/\n",
313
+ "#!wget -c https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3A1_orangemixs.safetensors -P ./models/checkpoints/\n",
314
+ "#!wget -c https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3A3_orangemixs.safetensors -P ./models/checkpoints/\n",
315
+ "#!wget -c https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/anything-v3-fp16-pruned.safetensors -P ./models/checkpoints/\n",
316
+ "\n",
317
+ "# Waifu Diffusion 1.5 (anime style SD2.x 768-v)\n",
318
+ "#!wget -c https://huggingface.co/waifu-diffusion/wd-1-5-beta3/resolve/main/wd-illusion-fp16.safetensors -P ./models/checkpoints/\n",
319
+ "\n",
320
+ "\n",
321
+ "# unCLIP models\n",
322
+ "#!wget -c https://huggingface.co/comfyanonymous/illuminatiDiffusionV1_v11_unCLIP/resolve/main/illuminatiDiffusionV1_v11-unclip-h-fp16.safetensors -P ./models/checkpoints/\n",
323
+ "#!wget -c https://huggingface.co/comfyanonymous/wd-1.5-beta2_unCLIP/resolve/main/wd-1-5-beta2-aesthetic-unclip-h-fp16.safetensors -P ./models/checkpoints/\n",
324
+ "\n",
325
+ "\n",
326
+ "# VAE\n",
327
+ "!wget -c https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors -P ./models/vae/\n",
328
+ "#!wget -c https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/VAEs/orangemix.vae.pt -P ./models/vae/\n",
329
+ "#!wget -c https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt -P ./models/vae/\n",
330
+ "\n",
331
+ "\n",
332
+ "# Loras\n",
333
+ "#!wget -c https://civitai.com/api/download/models/10350 -O ./models/loras/theovercomer8sContrastFix_sd21768.safetensors #theovercomer8sContrastFix SD2.x 768-v\n",
334
+ "#!wget -c https://civitai.com/api/download/models/10638 -O ./models/loras/theovercomer8sContrastFix_sd15.safetensors #theovercomer8sContrastFix SD1.x\n",
335
+ "#!wget -c https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors -P ./models/loras/ #SDXL offset noise lora\n",
336
+ "\n",
337
+ "\n",
338
+ "# T2I-Adapter\n",
339
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_depth_sd14v1.pth -P ./models/controlnet/\n",
340
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_seg_sd14v1.pth -P ./models/controlnet/\n",
341
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_sketch_sd14v1.pth -P ./models/controlnet/\n",
342
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_keypose_sd14v1.pth -P ./models/controlnet/\n",
343
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_openpose_sd14v1.pth -P ./models/controlnet/\n",
344
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_color_sd14v1.pth -P ./models/controlnet/\n",
345
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_canny_sd14v1.pth -P ./models/controlnet/\n",
346
+ "\n",
347
+ "# T2I Styles Model\n",
348
+ "#!wget -c https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_style_sd14v1.pth -P ./models/style_models/\n",
349
+ "\n",
350
+ "# CLIPVision model (needed for styles model)\n",
351
+ "#!wget -c https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/pytorch_model.bin -O ./models/clip_vision/clip_vit14.bin\n",
352
+ "\n",
353
+ "\n",
354
+ "# ControlNet\n",
355
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors -P ./models/controlnet/\n",
356
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors -P ./models/controlnet/\n",
357
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_canny_fp16.safetensors -P ./models/controlnet/\n",
358
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11f1p_sd15_depth_fp16.safetensors -P ./models/controlnet/\n",
359
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors -P ./models/controlnet/\n",
360
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_lineart_fp16.safetensors -P ./models/controlnet/\n",
361
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors -P ./models/controlnet/\n",
362
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors -P ./models/controlnet/\n",
363
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_openpose_fp16.safetensors -P ./models/controlnet/\n",
364
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_scribble_fp16.safetensors -P ./models/controlnet/\n",
365
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_seg_fp16.safetensors -P ./models/controlnet/\n",
366
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_softedge_fp16.safetensors -P ./models/controlnet/\n",
367
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors -P ./models/controlnet/\n",
368
+ "#!wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11u_sd15_tile_fp16.safetensors -P ./models/controlnet/\n",
369
+ "\n",
370
+ "# ControlNet SDXL\n",
371
+ "#!wget -c https://huggingface.co/stabilityai/control-lora/resolve/main/control-LoRAs-rank256/control-lora-canny-rank256.safetensors -P ./models/controlnet/\n",
372
+ "#!wget -c https://huggingface.co/stabilityai/control-lora/resolve/main/control-LoRAs-rank256/control-lora-depth-rank256.safetensors -P ./models/controlnet/\n",
373
+ "#!wget -c https://huggingface.co/stabilityai/control-lora/resolve/main/control-LoRAs-rank256/control-lora-recolor-rank256.safetensors -P ./models/controlnet/\n",
374
+ "#!wget -c https://huggingface.co/stabilityai/control-lora/resolve/main/control-LoRAs-rank256/control-lora-sketch-rank256.safetensors -P ./models/controlnet/\n",
375
+ "\n",
376
+ "# Controlnet Preprocessor nodes by Fannovel16\n",
377
+ "#!cd custom_nodes && git clone https://github.com/Fannovel16/comfy_controlnet_preprocessors; cd comfy_controlnet_preprocessors && python install.py\n",
378
+ "\n",
379
+ "\n",
380
+ "# GLIGEN\n",
381
+ "#!wget -c https://huggingface.co/comfyanonymous/GLIGEN_pruned_safetensors/resolve/main/gligen_sd14_textbox_pruned_fp16.safetensors -P ./models/gligen/\n",
382
+ "\n",
383
+ "\n",
384
+ "# ESRGAN upscale model\n",
385
+ "#!wget -c https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P ./models/upscale_models/\n",
386
+ "#!wget -c https://huggingface.co/sberbank-ai/Real-ESRGAN/resolve/main/RealESRGAN_x2.pth -P ./models/upscale_models/\n",
387
+ "#!wget -c https://huggingface.co/sberbank-ai/Real-ESRGAN/resolve/main/RealESRGAN_x4.pth -P ./models/upscale_models/\n",
388
+ "\n",
389
+ "\n"
390
+ ]
391
+ },
392
+ {
393
+ "cell_type": "markdown",
394
+ "metadata": {
395
+ "id": "kkkkkkkkkkkkkkk"
396
+ },
397
+ "source": [
398
+ "### Run ComfyUI with cloudflared (Recommended Way)\n",
399
+ "\n",
400
+ "\n"
401
+ ]
402
+ },
403
+ {
404
+ "cell_type": "code",
405
+ "execution_count": null,
406
+ "metadata": {
407
+ "id": "jjjjjjjjjjjjjj",
408
+ "colab": {
409
+ "base_uri": "https://localhost:8080/"
410
+ },
411
+ "outputId": "4b28598f-5e4b-4a9a-e7d1-d52521c48d67"
412
+ },
413
+ "outputs": [
414
+ {
415
+ "output_type": "stream",
416
+ "name": "stdout",
417
+ "text": [
418
+ "--2025-04-11 06:46:07-- https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb\n",
419
+ "Resolving github.com (github.com)... 140.82.116.3\n",
420
+ "Connecting to github.com (github.com)|140.82.116.3|:443... connected.\n",
421
+ "HTTP request sent, awaiting response... 302 Found\n",
422
+ "Location: https://github.com/cloudflare/cloudflared/releases/download/2025.4.0/cloudflared-linux-amd64.deb [following]\n",
423
+ "--2025-04-11 06:46:08-- https://github.com/cloudflare/cloudflared/releases/download/2025.4.0/cloudflared-linux-amd64.deb\n",
424
+ "Reusing existing connection to github.com:443.\n",
425
+ "HTTP request sent, awaiting response... 302 Found\n",
426
+ "Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/106867604/d7e7703c-c0be-4512-b40f-145c402e03fd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250411%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250411T064608Z&X-Amz-Expires=300&X-Amz-Signature=c82c86e0f6ce626db629b0ad1aebd6e9671cc9248412837912bd3b2913ba9bf5&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dcloudflared-linux-amd64.deb&response-content-type=application%2Foctet-stream [following]\n",
427
+ "--2025-04-11 06:46:08-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/106867604/d7e7703c-c0be-4512-b40f-145c402e03fd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250411%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250411T064608Z&X-Amz-Expires=300&X-Amz-Signature=c82c86e0f6ce626db629b0ad1aebd6e9671cc9248412837912bd3b2913ba9bf5&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dcloudflared-linux-amd64.deb&response-content-type=application%2Foctet-stream\n",
428
+ "Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
429
+ "Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
430
+ "HTTP request sent, awaiting response... 200 OK\n",
431
+ "Length: 18554330 (18M) [application/octet-stream]\n",
432
+ "Saving to: ‘cloudflared-linux-amd64.deb’\n",
433
+ "\n",
434
+ "cloudflared-linux-a 100%[===================>] 17.69M --.-KB/s in 0.1s \n",
435
+ "\n",
436
+ "2025-04-11 06:46:08 (162 MB/s) - ‘cloudflared-linux-amd64.deb’ saved [18554330/18554330]\n",
437
+ "\n",
438
+ "Selecting previously unselected package cloudflared.\n",
439
+ "(Reading database ... 126315 files and directories currently installed.)\n",
440
+ "Preparing to unpack cloudflared-linux-amd64.deb ...\n",
441
+ "Unpacking cloudflared (2025.4.0) ...\n",
442
+ "Setting up cloudflared (2025.4.0) ...\n",
443
+ "Processing triggers for man-db (2.10.2-1) ...\n",
444
+ "Checkpoint files will always be loaded safely.\n",
445
+ "Total VRAM 15095 MB, total RAM 12979 MB\n",
446
+ "pytorch version: 2.6.0+cu124\n",
447
+ "WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:\n",
448
+ " PyTorch 2.6.0+cu118 with CUDA 1108 (you have 2.6.0+cu124)\n",
449
+ " Python 3.11.11 (you have 3.11.12)\n",
450
+ " Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)\n",
451
+ " Memory-efficient attention, SwiGLU, sparse and more won't be available.\n",
452
+ " Set XFORMERS_MORE_DETAILS=1 for more details\n",
453
+ "xformers version: 0.0.29.post3\n",
454
+ "Set vram state to: NORMAL_VRAM\n",
455
+ "Device: cuda:0 Tesla T4 : cudaMallocAsync\n",
456
+ "Using pytorch attention\n",
457
+ "ComfyUI version: 0.3.27\n",
458
+ "****** User settings have been changed to be stored on the server instead of browser storage. ******\n",
459
+ "****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ******\n",
460
+ "ComfyUI frontend version: 1.14.6\n",
461
+ "[Prompt Server] web root: /usr/local/lib/python3.11/dist-packages/comfyui_frontend_package/static\n",
462
+ "\n",
463
+ "Import times for custom nodes:\n",
464
+ " 0.0 seconds: /content/ComfyUI/custom_nodes/websocket_image_save.py\n",
465
+ "\n",
466
+ "\n",
467
+ "ComfyUI finished loading, trying to launch cloudflared (if it gets stuck here cloudflared is having issues)\n",
468
+ "\n",
469
+ "This is the URL to access ComfyUI: https://whats-conjunction-cleared-brian.trycloudflare.com |\n"
470
+ ]
471
+ }
472
+ ],
473
+ "source": [
474
+ "!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb\n",
475
+ "!dpkg -i cloudflared-linux-amd64.deb\n",
476
+ "\n",
477
+ "import subprocess\n",
478
+ "import threading\n",
479
+ "import time\n",
480
+ "import socket\n",
481
+ "import urllib.request\n",
482
+ "\n",
483
+ "def iframe_thread(port):\n",
484
+ " while True:\n",
485
+ " time.sleep(0.5)\n",
486
+ " sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n",
487
+ " result = sock.connect_ex(('127.0.0.1', port))\n",
488
+ " if result == 0:\n",
489
+ " break\n",
490
+ " sock.close()\n",
491
+ " print(\"\\nComfyUI finished loading, trying to launch cloudflared (if it gets stuck here cloudflared is having issues)\\n\")\n",
492
+ "\n",
493
+ " p = subprocess.Popen([\"cloudflared\", \"tunnel\", \"--url\", \"http://127.0.0.1:{}\".format(port)], stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n",
494
+ " for line in p.stderr:\n",
495
+ " l = line.decode()\n",
496
+ " if \"trycloudflare.com \" in l:\n",
497
+ " print(\"This is the URL to access ComfyUI:\", l[l.find(\"http\"):], end='')\n",
498
+ " #print(l, end='')\n",
499
+ "\n",
500
+ "\n",
501
+ "threading.Thread(target=iframe_thread, daemon=True, args=(8188,)).start()\n",
502
+ "\n",
503
+ "!python main.py --dont-print-server"
504
+ ]
505
+ }
506
+ ],
507
+ "metadata": {
508
+ "accelerator": "GPU",
509
+ "colab": {
510
+ "provenance": []
511
+ },
512
+ "gpuClass": "standard",
513
+ "kernelspec": {
514
+ "display_name": "Python 3",
515
+ "name": "python3"
516
+ },
517
+ "language_info": {
518
+ "name": "python"
519
+ }
520
+ },
521
+ "nbformat": 4,
522
+ "nbformat_minor": 0
523
+ }