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
{
|
| 15 |
+
"name": "stdout",
|
| 16 |
+
"output_type": "stream",
|
| 17 |
+
"text": [
|
| 18 |
+
"Defaulting to user installation because normal site-packages is not writeable\n",
|
| 19 |
+
"Requirement already satisfied: fastapi==0.90 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (0.90.0)\n",
|
| 20 |
+
"Requirement already satisfied: pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (from fastapi==0.90) (1.10.22)\n",
|
| 21 |
+
"Requirement already satisfied: starlette<=0.23.0,>=0.22.0 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (from fastapi==0.90) (0.23.0)\n",
|
| 22 |
+
"Requirement already satisfied: typing-extensions>=4.2.0 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (from pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2->fastapi==0.90) (4.14.1)\n",
|
| 23 |
+
"Requirement already satisfied: anyio<5,>=3.4.0 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (from starlette<=0.23.0,>=0.22.0->fastapi==0.90) (4.9.0)\n",
|
| 24 |
+
"Requirement already satisfied: idna>=2.8 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (from anyio<5,>=3.4.0->starlette<=0.23.0,>=0.22.0->fastapi==0.90) (3.10)\n",
|
| 25 |
+
"Requirement already satisfied: sniffio>=1.1 in c:\\users\\usuario\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\\localcache\\local-packages\\python312\\site-packages (from anyio<5,>=3.4.0->starlette<=0.23.0,>=0.22.0->fastapi==0.90) (1.3.1)\n"
|
| 26 |
+
]
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "stderr",
|
| 30 |
+
"output_type": "stream",
|
| 31 |
+
"text": [
|
| 32 |
+
"\n",
|
| 33 |
+
"[notice] A new release of pip is available: 25.0.1 -> 25.1.1\n",
|
| 34 |
+
"[notice] To update, run: C:\\Users\\USUARIO\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\\python.exe -m pip install --upgrade pip\n",
|
| 35 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 36 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 37 |
+
"\n",
|
| 38 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 39 |
+
"100 1183 100 1183 0 0 7014 0 --:--:-- --:--:-- --:--:-- 7083\n",
|
| 40 |
+
"\n",
|
| 41 |
+
" 11 231M 11 26.2M 0 0 27.6M 0 0:00:08 --:--:-- 0:00:08 27.6M\n",
|
| 42 |
+
" 34 231M 34 79.3M 0 0 40.7M 0 0:00:05 0:00:01 0:00:04 53.1M\n",
|
| 43 |
+
" 59 231M 59 137M 0 0 46.7M 0 0:00:04 0:00:02 0:00:02 55.7M\n",
|
| 44 |
+
" 87 231M 87 203M 0 0 51.6M 0 0:00:04 0:00:03 0:00:01 59.1M\n",
|
| 45 |
+
"100 231M 100 231M 0 0 51.8M 0 0:00:04 0:00:04 --:--:-- 58.3M\n",
|
| 46 |
+
"\"unzip\" no se reconoce como un comando interno o externo,\n",
|
| 47 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 48 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 49 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 50 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 51 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 52 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 53 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 54 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 55 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 56 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 57 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 58 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 59 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 60 |
+
"\"git\" no se reconoce como un comando interno o externo,\n",
|
| 61 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 62 |
+
"La sintaxis del comando no es correcta.\n",
|
| 63 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 64 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 65 |
+
"\n",
|
| 66 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 67 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 68 |
+
"100 1223 100 1223 0 0 6056 0 --:--:-- --:--:-- --:--:-- 6084\n",
|
| 69 |
+
"Warning: Failed to open the file \n",
|
| 70 |
+
"Warning: /content/microsoftexcel/extensions/microsoftexcel-images-browser.zip: \n",
|
| 71 |
+
"Warning: No such file or directory\n",
|
| 72 |
+
"\n",
|
| 73 |
+
" 0 68776 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 74 |
+
"curl: (23) client returned ERROR on write of 16384 bytes\n",
|
| 75 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 76 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 77 |
+
"\n",
|
| 78 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 79 |
+
"100 1179 100 1179 0 0 6831 0 --:--:-- --:--:-- --:--:-- 6894\n",
|
| 80 |
+
"Warning: Failed to open the file \n",
|
| 81 |
+
"Warning: /content/microsoftexcel/embeddings/embeddings.zip: No such file or \n",
|
| 82 |
+
"Warning: directory\n",
|
| 83 |
+
"\n",
|
| 84 |
+
" 0 1509k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 85 |
+
"curl: (23) client returned ERROR on write of 15620 bytes\n"
|
| 86 |
+
]
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "stdout",
|
| 90 |
+
"output_type": "stream",
|
| 91 |
+
"text": [
|
| 92 |
+
"[WinError 3] El sistema no puede encontrar la ruta especificada: '/content/microsoftexcel/extensions'\n",
|
| 93 |
+
"c:\\Users\\USUARIO\\Downloads\n"
|
| 94 |
+
]
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name": "stderr",
|
| 98 |
+
"output_type": "stream",
|
| 99 |
+
"text": [
|
| 100 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 101 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 102 |
+
"\n",
|
| 103 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 104 |
+
"100 1163 100 1163 0 0 6455 0 --:--:-- --:--:-- --:--:-- 6497\n",
|
| 105 |
+
"Warning: Failed to open the file \n",
|
| 106 |
+
"Warning: /content/microsoftexcel/models/ESRGAN/upscalers.zip: No such file or \n",
|
| 107 |
+
"Warning: directory\n",
|
| 108 |
+
"\n",
|
| 109 |
+
" 0 709M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 110 |
+
"curl: (23) client returned ERROR on write of 7036 bytes\n"
|
| 111 |
+
]
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"name": "stdout",
|
| 115 |
+
"output_type": "stream",
|
| 116 |
+
"text": [
|
| 117 |
+
"[WinError 3] El sistema no puede encontrar la ruta especificada: '/content/microsoftexcel/embeddings'\n",
|
| 118 |
+
"c:\\Users\\USUARIO\\Downloads\n"
|
| 119 |
+
]
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"name": "stderr",
|
| 123 |
+
"output_type": "stream",
|
| 124 |
+
"text": [
|
| 125 |
+
"\"unzip\" no se reconoce como un comando interno o externo,\n",
|
| 126 |
+
"programa o archivo por lotes ejecutable.\n"
|
| 127 |
+
]
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"name": "stdout",
|
| 131 |
+
"output_type": "stream",
|
| 132 |
+
"text": [
|
| 133 |
+
"[WinError 3] El sistema no puede encontrar la ruta especificada: '/content/microsoftexcel/models/ESRGAN'\n",
|
| 134 |
+
"c:\\Users\\USUARIO\\Downloads\n"
|
| 135 |
+
]
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"name": "stderr",
|
| 139 |
+
"output_type": "stream",
|
| 140 |
+
"text": [
|
| 141 |
+
"\"unzip\" no se reconoce como un comando interno o externo,\n",
|
| 142 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 143 |
+
"\"unzip\" no se reconoce como un comando interno o externo,\n",
|
| 144 |
+
"programa o archivo por lotes ejecutable.\n"
|
| 145 |
+
]
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"name": "stdout",
|
| 149 |
+
"output_type": "stream",
|
| 150 |
+
"text": [
|
| 151 |
+
"[WinError 2] El sistema no puede encontrar el archivo especificado: '/content'\n",
|
| 152 |
+
"c:\\Users\\USUARIO\\Downloads\n"
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"name": "stderr",
|
| 157 |
+
"output_type": "stream",
|
| 158 |
+
"text": [
|
| 159 |
+
"\"rm\" no se reconoce como un comando interno o externo,\n",
|
| 160 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 161 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 162 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 163 |
+
"\n",
|
| 164 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 165 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 166 |
+
"100 502 0 502 0 0 1221 0 --:--:-- --:--:-- --:--:-- 1224\n",
|
| 167 |
+
"Warning: Failed to open the file \n",
|
| 168 |
+
"Warning: /content/microsoftexcel/models/Stable-diffusion/beautifulRealistic_v60\n",
|
| 169 |
+
"Warning: .safetensors: No such file or directory\n",
|
| 170 |
+
"\n",
|
| 171 |
+
" 0 2033M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 172 |
+
"curl: (23) client returned ERROR on write of 1369 bytes\n"
|
| 173 |
+
]
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"name": "stdout",
|
| 177 |
+
"output_type": "stream",
|
| 178 |
+
"text": [
|
| 179 |
+
"[WinError 3] El sistema no puede encontrar la ruta especificada: '/content/microsoftexcel'\n",
|
| 180 |
+
"c:\\Users\\USUARIO\\Downloads\n"
|
| 181 |
+
]
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"name": "stderr",
|
| 185 |
+
"output_type": "stream",
|
| 186 |
+
"text": [
|
| 187 |
+
"\"rm\" no se reconoce como un comando interno o externo,\n",
|
| 188 |
+
"programa o archivo por lotes ejecutable.\n",
|
| 189 |
+
"\"COMMANDLINE_ARGS\" no se reconoce como un comando interno o externo,\n",
|
| 190 |
+
"programa o archivo por lotes ejecutable.\n"
|
| 191 |
+
]
|
| 192 |
+
}
|
| 193 |
+
],
|
| 194 |
+
"source": [
|
| 195 |
+
"# Try this memory fix if we experiencing constant disconnect from colab server\n",
|
| 196 |
+
"#!curl -Lo memfix.zip https://github.com/nolanaatama/microsoftexcel/raw/main/memfix.zip\n",
|
| 197 |
+
"#!unzip /content/memfix.zip\n",
|
| 198 |
+
"#!apt install -qq libunwind8-dev\n",
|
| 199 |
+
"#!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
| 200 |
+
"#!dpkg -i *.deb\n",
|
| 201 |
+
"#%env LD_PRELOAD=libtcmalloc.so\n",
|
| 202 |
+
"#!rm *\n",
|
| 203 |
+
"!pip install fastapi==0.90\n",
|
| 204 |
+
"!curl -Lo microsoftexcel.zip https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel151.zip\n",
|
| 205 |
+
"!unzip /content/microsoftexcel.zip\n",
|
| 206 |
+
"\n",
|
| 207 |
+
"# Extensions Section\n",
|
| 208 |
+
"!git clone https://github.com/nolanaatama/microsoftexcel-tunnels /content/microsoftexcel/extensions/microsoftexcel-tunnels\n",
|
| 209 |
+
"!git clone https://github.com/nolanaatama/microsoftexcel-controlnet /content/microsoftexcel/extensions/microsoftexcel-controlnet\n",
|
| 210 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/microsoftexcel/extensions/openpose-editor\n",
|
| 211 |
+
"!git clone https://github.com/nolanaatama/microsoftexcel-3d-open-pose-editor /content/microsoftexcel/extensions/microsoftexcel-3d-open-pose-editor\n",
|
| 212 |
+
"!git clone https://github.com/nolanaatama/a1111-microsoftexcel-tagcomplete /content/microsoftexcel/extensions/a1111-microsoftexcel-tagcomplete\n",
|
| 213 |
+
"!git clone https://github.com/nolanaatama/a1111-microsoftexcel-locon /content/microsoftexcel/extensions/a1111-microsoftexcel-locon\n",
|
| 214 |
+
"# Additional Extensions\n",
|
| 215 |
+
"# !After Detailer\n",
|
| 216 |
+
"#!git clone https://github.com/Bing-su/adetailer /content/microsoftexcel/extensions/adetailer\n",
|
| 217 |
+
"#!git clone https://huggingface.co/Bingsu/adetailer /content/microsoftexcel/models/adetailer\n",
|
| 218 |
+
"# Deforum\n",
|
| 219 |
+
"#!git clone https://github.com/nolanaatama/microsoftexcel-deforum /content/microsoftexcel/extensions/microsoftexcel-deforum\n",
|
| 220 |
+
"# Mov2mov\n",
|
| 221 |
+
"#!git clone https://github.com/nolanaatama/microsoftexcel-mov2mov /content/microsoftexcel/extensions/microsoftexcel-mov2mov\n",
|
| 222 |
+
"# roop\n",
|
| 223 |
+
"#!git clone https://github.com/nolanaatama/microsoftexcel-roop /content/microsoftexcel/extensions/microsoftexcel-roop\n",
|
| 224 |
+
"# SuperMerger\n",
|
| 225 |
+
"#!git clone https://github.com/nolanaatama/microsoftexcel-supermerger /content/microsoftexcel/extensions/microsoftexcel-supermerger\n",
|
| 226 |
+
"# TemporalKit\n",
|
| 227 |
+
"#!git clone https://github.com/CiaraStrawberry/TemporalKit /content/microsoftexcel/extensions/TemporalKit\n",
|
| 228 |
+
"# Ultimate SD Upscale\n",
|
| 229 |
+
"!git clone https://github.com/Coyote-A/ultimate-upscale-for-automatic1111 /content/microsoftexcel/extensions/ultimate-upscale-for-automatic1111 /content/microsoftexcel/extensions/ultimate-upscale-for-automatic1111\n",
|
| 230 |
+
"\n",
|
| 231 |
+
"!mkdir /content/microsoftexcel/models/ESRGAN\n",
|
| 232 |
+
"!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-images-browser.zip https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel-images-browser.zip\n",
|
| 233 |
+
"!curl -Lo /content/microsoftexcel/embeddings/embeddings.zip https://huggingface.co/nolanaatama/colab/resolve/main/embeddings.zip\n",
|
| 234 |
+
"!curl -Lo /content/microsoftexcel/models/ESRGAN/upscalers.zip https://huggingface.co/Zabin/Resizers/resolve/main/ESRGAN.zip\n",
|
| 235 |
+
"%cd /content/microsoftexcel/extensions\n",
|
| 236 |
+
"!unzip /content/microsoftexcel/extensions/microsoftexcel-images-browser.zip\n",
|
| 237 |
+
"%cd /content/microsoftexcel/embeddings\n",
|
| 238 |
+
"!unzip /content/microsoftexcel/embeddings/embeddings.zip\n",
|
| 239 |
+
"%cd /content/microsoftexcel/models/ESRGAN\n",
|
| 240 |
+
"!unzip /content/microsoftexcel/models/ESRGAN/upscalers.zip\n",
|
| 241 |
+
"!rm upscalers.zip\n",
|
| 242 |
+
"%cd /content\n",
|
| 243 |
+
"\n",
|
| 244 |
+
"# Model Code\n",
|
| 245 |
+
"!curl -Lo /content/microsoftexcel/models/Stable-diffusion/beautifulRealistic_v60.safetensors https://civitai.com/api/download/models/113479\n",
|
| 246 |
+
"\n",
|
| 247 |
+
"\n",
|
| 248 |
+
"# ControlNet\n",
|
| 249 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
| 250 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11e_sd15_ip2p.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors\n",
|
| 251 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11e_sd15_shuffle.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors\n",
|
| 252 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_canny.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_canny_fp16.safetensors\n",
|
| 253 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11f1p_sd15_depth.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_depth_fp16.safetensors\n",
|
| 254 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_inpaint.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors\n",
|
| 255 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_lineart.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_lineart_fp16.safetensors\n",
|
| 256 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_mlsd.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors\n",
|
| 257 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_normalbae.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors\n",
|
| 258 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_openpose.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_openpose_fp16.safetensors\n",
|
| 259 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_scribble.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_scribble_fp16.safetensors\n",
|
| 260 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_seg.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_seg_fp16.safetensors\n",
|
| 261 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15_softedge.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_softedge_fp16.safetensors\n",
|
| 262 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11p_sd15s2_lineart_anime.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors\n",
|
| 263 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/control_v11f1e_sd15_tile.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11f1e_sd15_tile_fp16.safetensors\n",
|
| 264 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_canny_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_canny_sd14v1.pth\n",
|
| 265 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_color_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_color_sd14v1.pth\n",
|
| 266 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_depth_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_depth_sd14v1.pth\n",
|
| 267 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_keypose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_keypose_sd14v1.pth\n",
|
| 268 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_openpose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_openpose_sd14v1.pth\n",
|
| 269 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_seg_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_seg_sd14v1.pth\n",
|
| 270 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_sketch_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_sketch_sd14v1.pth\n",
|
| 271 |
+
"#!curl -Lo /content/microsoftexcel/extensions/microsoftexcel-controlnet/models/t2iadapter_style_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_style_sd14v1.pth\n",
|
| 272 |
+
"!rm microsoftexcel.zip\n",
|
| 273 |
+
"%cd /content/microsoftexcel\n",
|
| 274 |
+
"\n",
|
| 275 |
+
"# Web UI tunnel\n",
|
| 276 |
+
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --theme=dark\" REQS_FILE=\"requirements.txt\" python launch.py\n",
|
| 277 |
+
"# Use this command below to use cloudflare tunnel\n",
|
| 278 |
+
"#!COMMANDLINE_ARGS=\"--disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --cloudflared\" REQS_FILE=\"requirements.txt\" python launch.py"
|
| 279 |
+
]
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"cell_type": "markdown",
|
| 283 |
+
"metadata": {},
|
| 284 |
+
"source": [
|
| 285 |
+
"## (OPTIONAL) LoRAs"
|
| 286 |
+
]
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"cell_type": "markdown",
|
| 290 |
+
"metadata": {},
|
| 291 |
+
"source": [
|
| 292 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
| 293 |
+
]
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"cell_type": "markdown",
|
| 297 |
+
"metadata": {},
|
| 298 |
+
"source": [
|
| 299 |
+
"### 2. Load the LoRA & launch the web ui"
|
| 300 |
+
]
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"cell_type": "code",
|
| 304 |
+
"execution_count": 8,
|
| 305 |
+
"metadata": {},
|
| 306 |
+
"outputs": [
|
| 307 |
+
{
|
| 308 |
+
"name": "stderr",
|
| 309 |
+
"output_type": "stream",
|
| 310 |
+
"text": [
|
| 311 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 312 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 313 |
+
"\n",
|
| 314 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 315 |
+
"100 505 0 505 0 0 1362 0 --:--:-- --:--:-- --:--:-- 1364\n",
|
| 316 |
+
"100 505 0 505 0 0 1361 0 --:--:-- --:--:-- --:--:-- 1364\n",
|
| 317 |
+
"Warning: Failed to open the file \n",
|
| 318 |
+
"Warning: /content/microsoftexcel/models/Lora/epiCRealismHelper.safetensors: No \n",
|
| 319 |
+
"Warning: such file or directory\n",
|
| 320 |
+
"\n",
|
| 321 |
+
" 0 55.8M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 322 |
+
"curl: (23) client returned ERROR on write of 988 bytes\n",
|
| 323 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 324 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 325 |
+
"\n",
|
| 326 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 327 |
+
"100 1113 100 1113 0 0 6227 0 --:--:-- --:--:-- --:--:-- 6288\n",
|
| 328 |
+
"Warning: Failed to open the file \n",
|
| 329 |
+
"Warning: /content/microsoftexcel/models/Lora/more_details.safetensors: No such \n",
|
| 330 |
+
"Warning: file or directory\n",
|
| 331 |
+
"\n",
|
| 332 |
+
" 0 9324k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 333 |
+
"curl: (23) client returned ERROR on write of 15601 bytes\n",
|
| 334 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 335 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 336 |
+
"\n",
|
| 337 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 338 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 339 |
+
"100 491 0 491 0 0 1048 0 --:--:-- --:--:-- --:--:-- 1049\n",
|
| 340 |
+
"Warning: Failed to open the file \n",
|
| 341 |
+
"Warning: /content/microsoftexcel/models/Lora/add_detail.safetensors: No such \n",
|
| 342 |
+
"Warning: file or directory\n",
|
| 343 |
+
"\n",
|
| 344 |
+
" 0 36.1M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 345 |
+
"curl: (23) client returned ERROR on write of 995 bytes\n",
|
| 346 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 347 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 348 |
+
"\n",
|
| 349 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 350 |
+
"100 502 0 502 0 0 1400 0 --:--:-- --:--:-- --:--:-- 1406\n",
|
| 351 |
+
"\n",
|
| 352 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to open the file \n",
|
| 353 |
+
"Warning: /content/microsoftexcel/models/Lora/epi_noiseoffset2.safetensors: No \n",
|
| 354 |
+
"Warning: such file or directory\n",
|
| 355 |
+
"\n",
|
| 356 |
+
" 0 77.7M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 357 |
+
"curl: (23) client returned ERROR on write of 989 bytes\n",
|
| 358 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 359 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 360 |
+
"\n",
|
| 361 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 362 |
+
"100 494 0 494 0 0 1507 0 --:--:-- --:--:-- --:--:-- 1515\n",
|
| 363 |
+
"Warning: Failed to open the file \n",
|
| 364 |
+
"Warning: /content/microsoftexcel/models/Lora/ng_deepnegative_v1_75t.pt: No \n",
|
| 365 |
+
"Warning: such file or directory\n",
|
| 366 |
+
"\n",
|
| 367 |
+
" 0 225k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 368 |
+
"curl: (23) client returned ERROR on write of 4107 bytes\n",
|
| 369 |
+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
|
| 370 |
+
" Dload Upload Total Spent Left Speed\n",
|
| 371 |
+
"\n",
|
| 372 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 373 |
+
" 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to open the file \n",
|
| 374 |
+
"Warning: /content/microsoftexcel/models/roop/inswapper_128.onnx: No such file \n",
|
| 375 |
+
"Warning: or directory\n",
|
| 376 |
+
"\n",
|
| 377 |
+
" 0 29 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n",
|
| 378 |
+
"curl: (23) client returned ERROR on write of 29 bytes\n",
|
| 379 |
+
"\"COMMANDLINE_ARGS\" no se reconoce como un comando interno o externo,\n",
|
| 380 |
+
"programa o archivo por lotes ejecutable.\n"
|
| 381 |
+
]
|
| 382 |
+
}
|
| 383 |
+
],
|
| 384 |
+
"source": [
|
| 385 |
+
"# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\n",
|
| 386 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
| 387 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
| 388 |
+
"\n",
|
| 389 |
+
"# Detail Tweaker\n",
|
| 390 |
+
"!curl -Lo /content/microsoftexcel/models/Lora/epiCRealismHelper.safetensors https://civitai.com/api/download/models/118945\n",
|
| 391 |
+
"# Detail Tweaker\n",
|
| 392 |
+
"!curl -Lo /content/microsoftexcel/models/Lora/more_details.safetensors https://huggingface.co/yungplin/More_details/resolve/main/more_details.safetensors\n",
|
| 393 |
+
"# Detail Tweaker\n",
|
| 394 |
+
"!curl -Lo /content/microsoftexcel/models/Lora/add_detail.safetensors https://civitai.com/api/download/models/62833\n",
|
| 395 |
+
"# Detail Tweaker\n",
|
| 396 |
+
"!curl -Lo /content/microsoftexcel/models/Lora/epi_noiseoffset2.safetensors https://civitai.com/api/download/models/16576\n",
|
| 397 |
+
"# Detail Tweaker\n",
|
| 398 |
+
"!curl -Lo /content/microsoftexcel/models/Lora/ng_deepnegative_v1_75t.pt https://civitai.com/api/download/models/5637\n",
|
| 399 |
+
"# Model of Roof\n",
|
| 400 |
+
"!curl -Lo /content/microsoftexcel/models/roop/inswapper_128.onnx https://huggingface.co/deepinsight/inswapper/resolve/main/inswapper_128.onnx\n",
|
| 401 |
+
"\n",
|
| 402 |
+
"# Add More Details\n",
|
| 403 |
+
"#!curl -Lo /content/microsoftexcel/models/Lora/addmoredetails.safetensors https://huggingface.co/nolanaatama/ddmrdtls/resolve/main/ddmrdtls.safetensors\n",
|
| 404 |
+
"\n",
|
| 405 |
+
"# Additional LoRA 1\n",
|
| 406 |
+
"#!curl ...\n",
|
| 407 |
+
"\n",
|
| 408 |
+
"# Additional LoRA 2\n",
|
| 409 |
+
"#!curl ...\n",
|
| 410 |
+
"\n",
|
| 411 |
+
"# Additional LoRA 3\n",
|
| 412 |
+
"#!curl ...\n",
|
| 413 |
+
"\n",
|
| 414 |
+
"# ...\n",
|
| 415 |
+
"\n",
|
| 416 |
+
"# Web UI tunnel\n",
|
| 417 |
+
"!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --theme=dark\" REQS_FILE=\"requirements.txt\" python launch.py\n",
|
| 418 |
+
"# Use this command below to use cloudflare tunnel\n",
|
| 419 |
+
"#!COMMANDLINE_ARGS=\"--disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --cloudflared\" REQS_FILE=\"requirements.txt\" python launch.py"
|
| 420 |
+
]
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"cell_type": "markdown",
|
| 424 |
+
"metadata": {},
|
| 425 |
+
"source": [
|
| 426 |
+
"# 🎥 YouTube for more: [Malverse AI ](https://www.youtube.com/channel/UCq2ryqVO-QsBq64h-J2PqQA)\n",
|
| 427 |
+
"# 📦 Driver [CLOUD](https://drive.google.com/drive/folders/1z6xvZWrc-gLc0Q6ePnOhI-U-o5mKR-mv?usp=sharing)"
|
| 428 |
+
]
|
| 429 |
+
}
|
| 430 |
+
],
|
| 431 |
+
"metadata": {
|
| 432 |
+
"accelerator": "GPU",
|
| 433 |
+
"colab": {
|
| 434 |
+
"gpuType": "T4",
|
| 435 |
+
"provenance": []
|
| 436 |
+
},
|
| 437 |
+
"kernelspec": {
|
| 438 |
+
"display_name": "Python 3",
|
| 439 |
+
"name": "python3"
|
| 440 |
+
},
|
| 441 |
+
"language_info": {
|
| 442 |
+
"codemirror_mode": {
|
| 443 |
+
"name": "ipython",
|
| 444 |
+
"version": 3
|
| 445 |
+
},
|
| 446 |
+
"file_extension": ".py",
|
| 447 |
+
"mimetype": "text/x-python",
|
| 448 |
+
"name": "python",
|
| 449 |
+
"nbconvert_exporter": "python",
|
| 450 |
+
"pygments_lexer": "ipython3",
|
| 451 |
+
"version": "3.12.10"
|
| 452 |
+
},
|
| 453 |
+
"orig_nbformat": 4
|
| 454 |
+
},
|
| 455 |
+
"nbformat": 4,
|
| 456 |
+
"nbformat_minor": 0
|
| 457 |
+
}
|