XaiJu
marat_ai
marat_ai

patreon


Free Stable Diffusion Automatic1111 for Kaggle.com

I have good news for you! I've finally managed to create a notebook for kaggle.com. This means that now you can use the latest version of Automatic for free and practically without limitations.

tutorial link: https://www.youtube.com/watch?v=XG3IAw_1Pxw

upd1: Added embeddings and fixed the issue with downloading LoRA models.

upd2: Loca.lt has been banned on Kaggle, I suppose because one of the notebooks with this method was publicly available. I added ngrok, and it works now. Please check it out.

upd3: The repo has been updated 19.01.24

Notebook has been updated!

Free Stable Diffusion Automatic1111 for Kaggle.com

Comments

Unfortunately, yes, such an issue exists. I can suggest trying to use a different type of session with persistent memory, so the models won't be deleted after each run, but I'm not sure if there will be more space available. Another option is to use smaller-sized models; FP16 will help save a significant amount of storage, and it won't noticeably affect the quality

Mario G

Thanks for everything! It worked. I have one more question, as a person who knows almost nothing about the topic, how can I use the general storage of kaggle? In this situation, I only have 19.5 GB of storage space, and high-resolution processes quickly deplete the available storage. However, it seems that there is around 70 GB of usage space. I would be very happy if there is a way to both use more models and conduct longer-term projects. Regardless, thank you for your support; it was very helpful.

Taha Aslan

Hi! Good news - I've just fixed the repo. Everything works as it should

Mario G

Ok i created ngrok account and i got my authtoken. i ran just STEP3(option2) and i got this error:TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options

Taha Aslan

Hi! Got it. You need to add your ngrok token. It's easy, and you can watch how to do that here: https://www.youtube.com/watch?v=bUd8T0Oe_e4

Mario G

Hi! I tried for many times and I got all cells run. Unfortunately I got some errors, mistakes. Ok, I will show you all outputs step by step: STEP1: Done! Step2(base models): sd_xl_base_1.0.safetensors: 100%|██████████| 6.46G/6.46G [01:40<00:00, 69.4MB/s] sd_xl_refiner_1.0_0.9vae.safetensors: 100%|██████████| 5.66G/5.66G [01:27<00:00, 69.1MB/s] Realistic_Vision_V5.1.safetensors: 100%|██████████| 3.97G/3.97G [01:01<00:00, 69.6MB/s] 112406: 100%|██████████| 144M/144M [00:02<00:00, 59.5MB/s] All downloads completed. STEP2(controlnet): control_v11p_sd15_canny.pth: 100%|██████████| 1.45G/1.45G [00:06<00:00, 218MB/s] File downloaded successfully: /kaggle/working/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.pth control_v11f1p_sd15_depth.pth: 100%|██████████| 1.45G/1.45G [00:13<00:00, 106MB/s] File downloaded successfully: /kaggle/working/stable-diffusion-webui/extensions/sd-webui-controlnet/models/control_v11f1p_sd15_depth.pth STEP3(%cd stable-diffusion-webui): [Errno 2] No such file or directory: 'stable-diffusion-webui' /kaggle/working/stable-diffusion-webui /opt/conda/bin/lt -> /opt/conda/lib/node_modules/localtunnel/bin/lt.jslize /opt/conda/lib/node_moduleK /opt/conda/lib ...] \ install:localtunnel: sill doSerial install 22 `-- localtunnel@2.0.2 +-- axios@0.21.4 | `-- follow-redirects@1.15.5 +-- debug@4.3.2 | `-- ms@2.1.2 +-- openurl@1.1.1 `-- yargs@17.1.1 +-- cliui@7.0.4 | +-- strip-ansi@6.0.1 | | `-- ansi-regex@5.0.1 | `-- wrap-ansi@7.0.0 | `-- ansi-styles@4.3.0 | `-- color-convert@2.0.1 | `-- color-name@1.1.4 +-- escalade@3.1.1 +-- get-caller-file@2.0.5 +-- require-directory@2.1.1 +-- string-width@4.2.3 | +-- emoji-regex@8.0.0 | `-- is-fullwidth-code-point@3.0.0 +-- y18n@5.0.8 `-- yargs-parser@20.2.9 fatal: No names found, cannot describe anything. Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] Version: 1.6.0 Commit hash: 5ca7878925ab8a95d4d237278f511bb489b73fbd Installing clip Cloning Stable Diffusion into /kaggle/working/stable-diffusion-webui/repositories/stable-diffusion-stability-ai... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'... remote: Enumerating objects: 580, done. remote: Counting objects: 100% (580/580), done. remote: Compressing objects: 100% (309/309), done. remote: Total 580 (delta 279), reused 454 (delta 250), pack-reused 0 Receiving objects: 100% (580/580), 73.44 MiB | 45.38 MiB/s, done. Resolving deltas: 100% (279/279), done. Cloning Stable Diffusion XL into /kaggle/working/stable-diffusion-webui/repositories/generative-models... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/generative-models'... remote: Enumerating objects: 860, done. remote: Counting objects: 100% (503/503), done. remote: Compressing objects: 100% (233/233), done. remote: Total 860 (delta 359), reused 309 (delta 266), pack-reused 357 Receiving objects: 100% (860/860), 42.67 MiB | 21.79 MiB/s, done. Resolving deltas: 100% (435/435), done. Cloning K-diffusion into /kaggle/working/stable-diffusion-webui/repositories/k-diffusion... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/k-diffusion'... remote: Enumerating objects: 1329, done. remote: Counting objects: 100% (727/727), done. remote: Compressing objects: 100% (86/86), done. remote: Total 1329 (delta 685), reused 644 (delta 641), pack-reused 602 Receiving objects: 100% (1329/1329), 232.86 KiB | 2.35 MiB/s, done. Resolving deltas: 100% (933/933), done. Cloning CodeFormer into /kaggle/working/stable-diffusion-webui/repositories/CodeFormer... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/CodeFormer'... remote: Enumerating objects: 594, done. remote: Counting objects: 100% (245/245), done. remote: Compressing objects: 100% (88/88), done. remote: Total 594 (delta 175), reused 173 (delta 157), pack-reused 349 Receiving objects: 100% (594/594), 17.31 MiB | 37.86 MiB/s, done. Resolving deltas: 100% (286/286), done. Cloning BLIP into /kaggle/working/stable-diffusion-webui/repositories/BLIP... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/BLIP'... remote: Enumerating objects: 277, done. remote: Counting objects: 100% (165/165), done. remote: Compressing objects: 100% (30/30), done. remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112 Receiving objects: 100% (277/277), 7.03 MiB | 22.51 MiB/s, done. Resolving deltas: 100% (152/152), done. Installing requirements for CodeFormer Installing requirements Installing sd-webui-controlnet requirement: mediapipe Installing sd-webui-controlnet requirement: svglib Installing sd-webui-controlnet requirement: fvcore Installing sd-webui-controlnet requirement: onnxruntime Installing sd-webui-controlnet requirement: trimesh[easy] ControlNet init warning: Unable to install insightface automatically. Please try run `pip install insightface` manually. Launching Web UI with arguments: --port 6969 --api --disable-safe-unpickle --enable-insecure-extension-access --opt-sdp-attention --disable-console-progressbars --no-download-sd-model /opt/conda/lib/python3.10/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5 warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}" Traceback (most recent call last): File "/kaggle/working/stable-diffusion-webui/launch.py", line 48, in main() File "/kaggle/working/stable-diffusion-webui/launch.py", line 44, in main start() File "/kaggle/working/stable-diffusion-webui/modules/launch_utils.py", line 432, in start import webui File "/kaggle/working/stable-diffusion-webui/webui.py", line 13, in initialize.imports() File "/kaggle/working/stable-diffusion-webui/modules/initialize.py", line 21, in imports import gradio # noqa: F401 File "/opt/conda/lib/python3.10/site-packages/gradio/__init__.py", line 3, in import gradio.components as components File "/opt/conda/lib/python3.10/site-packages/gradio/components/__init__.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "/opt/conda/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 12, in from gradio import utils File "/opt/conda/lib/python3.10/site-packages/gradio/utils.py", line 353, in class AsyncRequest: File "/opt/conda/lib/python3.10/site-packages/gradio/utils.py", line 372, in AsyncRequest client = httpx.AsyncClient() File "/opt/conda/lib/python3.10/site-packages/httpx/_client.py", line 1397, in __init__ self._transport = self._init_transport( File "/opt/conda/lib/python3.10/site-packages/httpx/_client.py", line 1445, in _init_transport return AsyncHTTPTransport( File "/opt/conda/lib/python3.10/site-packages/httpx/_transports/default.py", line 275, in __init__ self._pool = httpcore.AsyncConnectionPool( TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options' STEP3(option 2):Collecting pyngrok Obtaining dependency information for pyngrok from https://files.pythonhosted.org/packages/77/d7/36e6b44465e994e7dc4a434f69f0db66f861e5c303ef36dbbc4f49224ebe/pyngrok-7.0.5-py3-none-any.whl.metadata Downloading pyngrok-7.0.5-py3-none-any.whl.metadata (6.2 kB) Requirement already satisfied: PyYAML in /opt/conda/lib/python3.10/site-packages (from pyngrok) (6.0.1) Downloading pyngrok-7.0.5-py3-none-any.whl (21 kB) Installing collected packages: pyngrok Successfully installed pyngrok-7.0.5 ERROR: authentication failed: The authtoken you specified is properly formed, but it is invalid. ERROR: Your authtoken: 2W1oOcje3ZcohEcxgP5NP7NbZ8W_7Pyt1TqYHuJ2j31vswd ERROR: This usually happens when: ERROR: - You reset your authtoken ERROR: - Your authtoken was for a team account that you were removed from ERROR: - You are using ngrok link and this credential was explicitly revoked ERROR: Go to your ngrok dashboard and double check that your authtoken is correct: ERROR: https://dashboard.ngrok.com/get-started/your-authtoken ERROR: ERROR: ERR_NGROK_107 ERROR: --------------------------------------------------------------------------- PyngrokNgrokError Traceback (most recent call last) Cell In[1], line 16 14 if Ngrok_token!="": 15 ngrok.kill() ---> 16 srv=ngrok.connect(6969 , pyngrok_config=conf.PyngrokConfig(auth_token=Ngrok_token), 17 bind_tls=True).public_url 18 print(srv) 19 get_ipython().run_line_magic('cd', '/kaggle/working/stable-diffusion-webui/') File /opt/conda/lib/python3.10/site-packages/pyngrok/ngrok.py:309, in connect(addr, proto, name, pyngrok_config, **options) 305 options["basic_auth"] = [auth] 307 options.pop("auth") --> 309 api_url = get_ngrok_process(pyngrok_config).api_url 311 logger.debug("Creating tunnel with options: {}".format(options)) 313 tunnel = NgrokTunnel(api_request("{}/api/tunnels".format(api_url), method="POST", data=options, 314 timeout=pyngrok_config.request_timeout), 315 pyngrok_config, api_url) File /opt/conda/lib/python3.10/site-packages/pyngrok/ngrok.py:153, in get_ngrok_process(pyngrok_config) 149 pyngrok_config = conf.get_default() 151 install_ngrok(pyngrok_config) --> 153 return process.get_process(pyngrok_config) File /opt/conda/lib/python3.10/site-packages/pyngrok/process.py:234, in get_process(pyngrok_config) 231 if is_process_running(pyngrok_config.ngrok_path): 232 return _current_processes[pyngrok_config.ngrok_path] --> 234 return _start_process(pyngrok_config) File /opt/conda/lib/python3.10/site-packages/pyngrok/process.py:395, in _start_process(pyngrok_config) 392 kill_process(pyngrok_config.ngrok_path) 394 if ngrok_process.startup_error is not None: --> 395 raise PyngrokNgrokError("The ngrok process errored on start: {}.".format(ngrok_process.startup_error), 396 ngrok_process.logs, 397 ngrok_process.startup_error) 398 else: 399 raise PyngrokNgrokError("The ngrok process was unable to start.", ngrok_process.logs) PyngrokNgrokError: The ngrok process errored on start: authentication failed: The authtoken you specified is properly formed, but it is invalid.\nYour authtoken: 2W1oOcje3ZcohEcxgP5NP7NbZ8W_7Pyt1TqYHuJ2j31vswd\nThis usually happens when:\n - You reset your authtoken\n - Your authtoken was for a team account that you were removed from\n - You are using ngrok link and this credential was explicitly revoked\nGo to your ngrok dashboard and double check that your authtoken is correct:\nhttps://dashboard.ngrok.com/get-started/your-authtoken\r\n\r\nERR_NGROK_107\r\n.

Taha Aslan

The link updated I've added ngrok option

Mario G

I've checked, and I have bad news: Kaggle blocked loca.lt, and it is not available. I'll try to find a new solution

Mario G

Yes, most likely it's because of the local tunnel. Please give me a day, and I'll try to fix this.

Mario G

this part of error in red /opt/conda/lib/node_modules/localtunnel/bin/lt.js:81 throw err; ^ Error: connection refused: localtunnel.me:35289 (check your firewall settings) at Socket. (/opt/conda/lib/node_modules/localtunnel/lib/TunnelCluster.js:52:11) at Socket.emit (node:events:513:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Node.js v18.15.0

Preston

Seems like due to the same previous problem with unstable loca server, but soon i met another error, please take a look [Errno 2] No such file or directory: 'stable-diffusion-webui' /kaggle/working/stable-diffusion-webui m#################⠂) ⠧ reify:debug: http fetch GET 200 https://registry.npmjs.o added 22 packages in 1s 3 packages are looking for funding run `npm fund` for details npm notice npm notice New major version of npm available! 9.5.0 -> 10.2.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.1 npm notice Run npm install -g npm@10.2.1 to update! npm notice fatal: No names found, cannot describe anything. Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] Version: 1.6.0 Commit hash: 5ca7878925ab8a95d4d237278f511bb489b73fbd Installing clip Installing requirements for CodeFormer Installing requirements Installing sd-webui-controlnet requirement: mediapipe Installing sd-webui-controlnet requirement: svglib Installing sd-webui-controlnet requirement: fvcore Launching Web UI with arguments: --port 6969 --api --disable-safe-unpickle --enable-insecure-extension-access --opt-sdp-attention --disable-console-progressbars --no-download-sd-model /opt/conda/lib/python3.10/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5 warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}" no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. 2023-10-25 15:54:20,873 - ControlNet - INFO - ControlNet v1.1.411 ControlNet preprocessor location: /kaggle/working/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads 2023-10-25 15:54:21,238 - ControlNet - INFO - ControlNet v1.1.411 Calculating sha256 for /kaggle/working/stable-diffusion-webui/models/Stable-diffusion/moonmix_reality30.safetensors: Running on local URL: http://127.0.0.1:6969 \Automatic finished loading, trying to launch localtunnel The password/enpoint ip for localtunnel is: _________________________________________________________ 35.230.26.159 To create a public link, set `share=True` in `launch()`. Startup time: 131.2s (prepare environment: 98.4s, import torch: 16.0s, import gradio: 1.4s, setup paths: 1.3s, initialize shared: 6.5s, other imports: 1.4s, setup codeformer: 0.3s, load scripts: 2.3s, create ui: 0.6s, gradio launch: 2.7s, add APIs: 0.1s). your url is: https://twelve-ears-shout.loca.lt /opt/conda/lib/node_modules/localtunnel/bin/lt.js:81 throw err; ^ Error: connection refused: localtunnel.me:35289 (check your firewall settings) at Socket. (/opt/conda/lib/node_modules/localtunnel/lib/TunnelCluster.js:52:11) at Socket.emit (node:events:513:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Node.js v18.15.0 94c5dc6b3f24137c4ceab04c5ac167a09e8c3b60bf084035b416bac632dda8f0 Loading weights [94c5dc6b3f] from /kaggle/working/stable-diffusion-webui/models/Stable-diffusion/moonmix_reality30.safetensors Creating model from config: /kaggle/working/stable-diffusion-webui/configs/v1-inference.yaml Downloading (…)olve/main/vocab.json: 100%|███| 961k/961k [00:00<00:00, 23.2MB/s] Downloading (…)olve/main/merges.txt: 100%|███| 525k/525k [00:00<00:00, 2.78MB/s] Downloading (…)cial_tokens_map.json: 100%|█████| 389/389 [00:00<00:00, 2.17MB/s] Downloading (…)okenizer_config.json: 100%|█████| 905/905 [00:00<00:00, 5.85MB/s] Downloading (…)lve/main/config.json: 100%|█| 4.52k/4.52k [00:00<00:00, 18.4MB/s] Applying attention optimization: sdp... done. Model loaded in 18.8s (calculate hash: 12.0s, load weights from disk: 1.1s, create model: 1.7s, apply weights to model: 0.8s, calculate empty prompt: 2.9s).

Preston

I used this notebook just yesterday, and it worked. According to the output, everything is okay. Did you send the full error code?

Mario G

Hi have this error, doesnt launch automic1111 webui at the final step [Errno 2] No such file or directory: 'stable-diffusion-webui' /kaggle/working/stable-diffusion-webui m#################⠂) ⠧ reify:yargs-parser: http fetch GET 200 https://registry. added 22 packages in 1s 3 packages are looking for funding run `npm fund` for details npm notice npm notice New major version of npm available! 9.5.0 -> 10.2.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.1 npm notice Run npm install -g npm@10.2.1 to update! npm notice fatal: No names found, cannot describe anything. Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] Version: 1.6.0 Commit hash: 5ca7878925ab8a95d4d237278f511bb489b73fbd Installing clip Cloning Stable Diffusion into /kaggle/working/stable-diffusion-webui/repositories/stable-diffusion-stability-ai... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'... remote: Enumerating objects: 577, done. remote: Counting objects: 100% (307/307), done. remote: Compressing objects: 100% (89/89), done. remote: Total 577 (delta 246), reused 219 (delta 218), pack-reused 270 Receiving objects: 100% (577/577), 73.43 MiB | 49.37 MiB/s, done. Resolving deltas: 100% (278/278), done. Cloning Stable Diffusion XL into /kaggle/working/stable-diffusion-webui/repositories/generative-models... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/generative-models'... remote: Enumerating objects: 740, done. remote: Counting objects: 100% (383/383), done. remote: Compressing objects: 100% (145/145), done. remote: Total 740 (delta 301), reused 238 (delta 238), pack-reused 357 Receiving objects: 100% (740/740), 22.31 MiB | 29.07 MiB/s, done. Resolving deltas: 100% (377/377), done. Cloning K-diffusion into /kaggle/working/stable-diffusion-webui/repositories/k-diffusion... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/k-diffusion'... remote: Enumerating objects: 1302, done. remote: Counting objects: 100% (1302/1302), done. remote: Compressing objects: 100% (411/411), done. remote: Total 1302 (delta 913), reused 1239 (delta 884), pack-reused 0 Receiving objects: 100% (1302/1302), 232.98 KiB | 3.03 MiB/s, done. Resolving deltas: 100% (913/913), done. Cloning CodeFormer into /kaggle/working/stable-diffusion-webui/repositories/CodeFormer... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/CodeFormer'... remote: Enumerating objects: 594, done. remote: Counting objects: 100% (245/245), done. remote: Compressing objects: 100% (90/90), done. remote: Total 594 (delta 176), reused 170 (delta 155), pack-reused 349 Receiving objects: 100% (594/594), 17.30 MiB | 36.54 MiB/s, done. Resolving deltas: 100% (287/287), done. Cloning BLIP into /kaggle/working/stable-diffusion-webui/repositories/BLIP... Cloning into '/kaggle/working/stable-diffusion-webui/repositories/BLIP'... remote: Enumerating objects: 277, done. remote: Counting objects: 100% (165/165), done. remote: Compressing objects: 100% (30/30), done. remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112 Receiving objects: 100% (277/277), 7.03 MiB | 25.72 MiB/s, done. Resolving deltas: 100% (152/152), done. Installing requirements for CodeFormer Installing requirements Installing sd-webui-controlnet requirement: mediapipe Installing sd-webui-controlnet requirement: svglib Installing sd-webui-controlnet requirement: fvcore Launching Web UI with arguments: --port 6969 --api --disable-safe-unpickle --enable-insecure-extension-access --opt-sdp-attention --disable-console-progressbars --no-download-sd-model /opt/conda/lib/python3.10/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5 warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}" no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. 2023-10-23 04:14:45,549 - ControlNet - INFO - ControlNet v1.1.411 ControlNet preprocessor location: /kaggle/working/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads 2023-10-23 04:14:45,909 - ControlNet - INFO - ControlNet v1.1.411 Calculating sha256 for /kaggle/working/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors: Running on local URL: http://127.0.0.1:6969 \Automatic finished loading, trying to launch localtunnel The password/enpoint ip for localtunnel is: _________________________________________________________ 35.202.98.96 To create a public link, set `share=True` in `launch()`. Startup time: 136.2s (prepare environment: 106.5s, import torch: 14.1s, import gradio: 1.3s, setup paths: 1.1s, initialize shared: 5.9s, other imports: 1.1s, setup codeformer: 0.3s, load scripts: 2.4s, create ui: 0.7s, gradio launch: 2.7s, add APIs: 0.2s). 31e35c80fc4829d14f90153f4c74cd59c90b779f6afe05a74cd6120b893f7e5b Loading weights [31e35c80fc] from /kaggle/working/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors Creating model from config: /kaggle/working/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml Downloading (…)olve/main/vocab.json: 100%|███| 961k/961k [00:00<00:00, 16.7MB/s] Downloading (…)olve/main/merges.txt: 100%|███| 525k/525k [00:00<00:00, 4.07MB/s] Downloading (…)cial_tokens_map.json: 100%|█████| 389/389 [00:00<00:00, 2.86MB/s] Downloading (…)okenizer_config.json: 100%|█████| 905/905 [00:00<00:00, 6.36MB/s] Downloading (…)lve/main/config.json: 100%|█| 4.52k/4.52k [00:00<00:00, 26.1MB/s] Applying attention optimization: sdp... done. Model loaded in 29.7s (calculate hash: 20.1s, load weights from disk: 1.4s, create model: 2.1s, apply weights to model: 2.9s, apply half(): 0.2s, move model to device: 0.1s, calculate empty prompt: 2.8s).

Preston

Hi! I've just fixed it. Please test it out. The notebook has been updated.

Mario G

Hi, i continue to have this error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[3], line 28 26 pass 27 else: ---> 28 download_file(download_EMBEDDING_links, target_EMBEDDING_dir) Cell In[2], line 29, in download_file(url, target_dir) 28 def download_file(url, target_dir): ---> 29 filename = url.split("/")[-1] # Extract the filename from the URL 30 download_path = os.path.join(target_dir, filename) 31 response = requests.get(url, stream=True) AttributeError: 'list' object has no attribute 'split'

Federico Cassetta

Hi! It seems that you didn't use a GPU. Please change your runtime by clicking the icon with three dots on the right and then choose 'Accelerator: T4

Mario G

When I run Stable Diffusion (Step 3) I get: [Errno 2] No such file or directory: 'stable-diffusion-webui' /kaggle/working/stable-diffusion-webui m#################⠂) ⠧ reify:yargs-parser: http fetch GET 200 https://registry. added 22 packages in 1s 3 packages are looking for funding run `npm fund` for details npm notice npm notice New major version of npm available! 9.5.0 -> 10.2.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.0 npm notice Run npm install -g npm@10.2.0 to update! npm notice fatal: No names found, cannot describe anything. Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] Version: 1.6.0 Commit hash: 5ca7878925ab8a95d4d237278f511bb489b73fbd Traceback (most recent call last): File "/kaggle/working/stable-diffusion-webui/launch.py", line 48, in main() File "/kaggle/working/stable-diffusion-webui/launch.py", line 39, in main prepare_environment() File "/kaggle/working/stable-diffusion-webui/modules/launch_utils.py", line 356, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Syntax

upd1: Added embeddings and fixed the issue with downloading LoRA models

Mario G

Hi! Thanks and you are welcome! And yes, I'll add embeddings, but ControlNets are already there. I've also added extension and links for downloading the desired cn models. Please, check it.

Mario G

Love this option! Can you add Controlnet models and embeddings sections to this Kaggle notebook? Thanks in advance!

Andrew

After following the tunnel link, paste the IP address from the console

Mario G


More Creators