Run Automatic1111 SD Web UI On A Free Kaggle NoteBook Like In Your PC - Supports SDXL & ControlNet
Added 2024-05-24 21:11:00 +0000 UTCJoin discord and tell me your discord username to get a special rank : SECourses Discord
How to use NGROK to connect Gradio apps on free Kaggle notebooks : https://youtu.be/iBT6rhH0Fjs
I appreciate very much if you upvote this Reddit thread > https://www.reddit.com/r/StableDiffusion/comments/16cpg9i/how_use_stable_diffusion_sdxl_controlnet_loras/
25 May 2024 Update
Notebook updated to V13
New IP Adapter SDXL model added ControlNet downloads to be able to do style transfer
Reactor extension added and will be auto installed
After Detailer (ADetailer) extension added and will be auto installed
Torch version upgraded to 2.3.0 and xFormers upgraded to 0.0.26 - really good performance
2 March 2024 Update
Don't forget to set Extra path to scan for ControlNet models (e.g. training output directory) folder to /kaggle/temp/cnmodels in settings menu
Default models folder path set back to /kaggle/temp/models
275 Amazing Fooocus styles csv file added to the notebook and auto downloaded and ready to use in Automatic1111 SD Web UI styles
New models ip-adapter-faceid Plus and instant_id_sdxl added to the ControlNet models
How to use them please read the following threads:
Ip Adapter Face ID of ControlNet : https://github.com/Mikubill/sd-webui-controlnet/discussions/2442
InstantID of ControlNet : https://github.com/Mikubill/sd-webui-controlnet/discussions/2589
14 December 2023 Update
Do not forget to put your own NGROK auth token when launching Automatic1111 Web UI Cell
19 October 2023 Update
Kaggle upgraded free CPU count to 4 from 2 and RAM to 29 GB from 13
Now we are blazing fast when running Automatic1111 and you can use many of the extensions including ControlNet
Download newest v6
9 October 2023 Massive Update NGROK
Now we will follow a different strategy to use the notebook
Please follow this video > https://youtu.be/dBBVQfKDmhM
It works much faster and better
9 September 2023 Update
Today released 11 new mode ControlNet models added to the Notebook
gemasai/4x_NMKD-Superscale-SP_178000_G Upscaler model added to the notebook upon request. You can also download other models with same way
3 Models from CivitAI added to the very bottom upon a request of a Patreon
5 September 2023 Update :
SDXL ControlNet added to the notebook and working great
Register a free Kaggle account : https://www.kaggle.com/
Verify your Phone number : https://www.kaggle.com/settings
Start a new notebook by clicking + Create button
Upload this automatic1111-sd-web-ui-free-kaggle-notebook v13.ipynb (import notebook)
Full main tutorial of this notebook > https://youtu.be/dpM02YMj8FY?si=8e7_koUdtroXHR9O
Select Python and GPU P100 or GPT T2 x2
Instructions are well written on the Notebook
Comments
i need to test if ComfyUI would be possible.
Furkan Gözükara
2024-05-23 15:53:53 +0000 UTCThis is fantastic! Never knew we got free lunch, will try it this evening! Thanks a lot for sharing!!! But possible to make a note to run Comfyui at Kaggle Notebook?
Vince Ma
2024-05-23 06:18:53 +0000 UTCthank you so much fixed with v12
Furkan Gözükara
2024-05-21 01:13:03 +0000 UTCMinor bug report: In The "Zip all images cell" it should be "/outputs/" instead of "/output/". Otherwise it works great.
Oliver Koch
2024-05-20 17:35:28 +0000 UTCwell that means you need to manually install xformers and torch version to fix the error. install torch 2.2.0 and xformers 0.0.24
Furkan Gözükara
2024-04-11 10:36:02 +0000 UTCHi, I'm running this on colab Pro with L4 GPU and High RAM but its giving me this error while trying to generate images. NotImplementedError: No operator found for `memory_efficient_attention_forward` with inputs: query : shape=(2, 4096, 8, 40) (torch.float16) key : shape=(2, 4096, 8, 40) (torch.float16) value : shape=(2, 4096, 8, 40) (torch.float16) attn_bias : p : 0.0 `decoderF` is not supported because: xFormers wasn't build with CUDA support attn_bias type is operator wasn't built - see `python -m xformers.info` for more info `flshattF@0.0.0` is not supported because: xFormers wasn't build with CUDA support operator wasn't built - see `python -m xformers.info` for more info `tritonflashattF` is not supported because: xFormers wasn't build with CUDA support operator wasn't built - see `python -m xformers.info` for more info triton is not available Only work on pre-MLIR triton for now `cutlassF` is not supported because: xFormers wasn't build with CUDA support operator wasn't built - see `python -m xformers.info` for more info `smallkF` is not supported because: max(query.shape[-1] != value.shape[-1]) > 32 xFormers wasn't build with CUDA support dtype=torch.float16 (supported: {torch.float32}) operator wasn't built - see `python -m xformers.info` for more info unsupported embed per head: 40
Akshay
2024-04-11 06:18:45 +0000 UTCThank you so much. Yes it is fixed I also tested.
Furkan Gözükara
2024-03-02 12:08:40 +0000 UTCI see you've reset the models dir to the temp directory. I was going to report I spent all day with my checkpoints loaded in /kaggle/temp/ and it worked fine, but you're already aware. Thanks so much for keeping on top of all the updates.
Rick B
2024-03-02 04:03:08 +0000 UTChello. hopefully i will add those new controlnet models soon. please remind me again if i don't
Furkan Gözükara
2024-02-29 15:45:07 +0000 UTCand How To install models ip-adapter-plus-face_sd15 ? please advise me Or is there a teaching clip for me?
Gen Zero
2024-02-29 05:02:04 +0000 UTChello. kaggle is having issues. please stop session and start again. for the last few days Kaggle have some problems sadly. not related to our scripts but their systems
Furkan Gözükara
2024-02-29 03:05:02 +0000 UTCScripts eror.I can't Running on local URL Please advise me?.
Gen Zero
2024-02-29 02:47:00 +0000 UTCno you need to use Ngrok. Kaggle do not allow public anymore. in recent videos I have shown this. check this one : https://youtu.be/16-b1AjvyBE
Furkan Gözükara
2024-02-12 20:08:47 +0000 UTCPublic not showing, It say to To create public link, set 'share=True' in 'launch()'. What Am l suppose to do
Droidmob95
2024-02-12 17:47:15 +0000 UTCHi. Fooocus has auto installer for windows I have shown in this video : https://youtu.be/jHTkVm2mcfs for runpod we have auto installer : https://www.patreon.com/posts/fooocus-sd-web-1-92759045 for kaggle we have auto installer : https://www.patreon.com/posts/fooocus-stable-94269866
Furkan Gözükara
2024-01-24 19:19:16 +0000 UTCHi. Fooocus has auto installer for windows I have shown in this video : https://youtu.be/jHTkVm2mcfs for runpod we have auto installer : https://www.patreon.com/posts/fooocus-sd-web-1-92759045 for kaggle we have auto installer : https://www.patreon.com/posts/fooocus-stable-94269866
Furkan Gözükara
2024-01-24 19:18:49 +0000 UTCHi... is it possible to add Fooocus to this Automatic1111 installation?
Art
2024-01-24 14:02:37 +0000 UTCeğer NSFW resim oluşursa çok katılar. hemen kapatıyorlar tek resim ile. ona göre model seçmeni tavsiye ederim
Furkan Gözükara
2024-01-17 14:09:10 +0000 UTCgörseller oluşturulduktan sonra sistem hesabı bloke ediyor
Yavuz Emre Kocak
2024-01-17 10:12:50 +0000 UTCyou are doing wrong. !wget "https://huggingface.co/xxx/my_checkpoints/blob/main/My_DB_Kaggle-000001.safetensors" -O "/kaggle/temp/cnmodels/My_DB_Kaggle-000001.safetensors"
Furkan Gözükara
2024-01-04 14:45:19 +0000 UTCI tried this: !wget -O /kaggle/temp/cnmodels/My_DB_Kaggle-000001.safetensors “https://huggingface.co/xxx/my_checkpoints/blob/main/My_DB_Kaggle-000001.safetensors” But it says: Scheme missing Do you know why? I couldn't find any other example how to get this done.
Felix Rockwell
2024-01-04 14:31:36 +0000 UTChello. upload them to your hugging face repo. so you can blazing fast download. in this video i have shown that : https://youtu.be/16-b1AjvyBE
Furkan Gözükara
2024-01-04 12:59:35 +0000 UTCHello, I followed your tutorial in creating my own Lora on Kaggel. The files have like 6GB each and I have maybe 5 files. The problem what I have now is that I have to upload all these big lora files back to Kaggel to start working with them? With my Internet connection 5Mbps it would take ages.
Felix Rockwell
2024-01-04 08:30:04 +0000 UTCthat means your working directory is full. you need to move models into temp .
Furkan Gözükara
2024-01-03 14:37:36 +0000 UTChi, while running "ngrok cell" I got this error "ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device" I tried 2 times more but still same error what to do? Ihave temp space 54.7GB filled.
Pallavi Chauhan
2024-01-03 14:21:20 +0000 UTCreplied back
Furkan Gözükara
2023-12-06 20:39:23 +0000 UTCoften unable to find out loras and controlnets after refreshing the interface, i have sent messages to you in discord
Juan Chen
2023-12-06 19:01:49 +0000 UTCmake sure that you have selected T4 GPUs before starting.
Furkan Gözükara
2023-12-05 13:36:34 +0000 UTCHello, the notebook is failing at the webui launch. ```Using TCMalloc: libtcmalloc_minimal.so.4 Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] Version: v1.6.1 Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 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```
Quentin Guittard
2023-12-05 04:30:55 +0000 UTCYou are right. Automatic1111 do not support multiple GPUs. I compared P100 and it was slower than T4.
Furkan Gözükara
2023-11-21 10:13:24 +0000 UTCThe notebook currently isn't making use of both Nvidia T4 GPUs. I was wondering about the benefits of having two T4s. Alternatively, we could consider the P100. Is there a way to configure it for optimal performance?
Krishan Kant
2023-11-21 10:11:31 +0000 UTCyou need to comment some models in that case. comment the ones that you won't use. put # in front of them
Furkan Gözükara
2023-11-09 22:34:32 +0000 UTCIt is not working at this moment right? The space of 70GB runs out and asks to upgrade to google cloud notebooks
Pc 0005
2023-11-09 19:33:19 +0000 UTCi am testing right now but working. have you watched this video? https://www.youtube.com/watch?v=dBBVQfKDmhM
Furkan Gözükara
2023-10-18 01:30:37 +0000 UTCthis doesn't seem to work anymore?
C05MIC Studio
2023-10-18 01:28:46 +0000 UTCi have other Patreon members generated for hours SFW images and still working. my account is also still working
Furkan Gözükara
2023-10-13 12:29:46 +0000 UTCHi everyone, is great to support you amazing work Furkan, two questions: I want to use this for generating sfw images. Is it safe to do so? Or could I get banned in Kaggle for using only automatic 1111?
DAVID PEREZ
2023-10-12 02:51:41 +0000 UTCroop extension is i think broken not supported anymore. you can use it on runpod as solo not as an extension, on google colab as solo or in computer solo. i never used it as an extension
Furkan Gözükara
2023-10-03 13:11:47 +0000 UTCI installed the roop extension and restarted the UI but it does not appear under controlnet as expected. I have read that the UI needs to be stopped and then restarted for the extension to appear. How can I stop the UI and restart in Kaggle?
Mark Brown
2023-10-03 12:32:48 +0000 UTCawesome thank you so much for this comment
Furkan Gözükara
2023-09-28 18:58:19 +0000 UTCBy the way the notebook works very well in kaggle, I have been testing it and although it is a bit slow (by kaggle not by your notebook which is great). The notebook is very well structured and as soon as you load it a couple of times it is already used very fluidly; It is also easy to add other models... Thank you for such a good job.
Salvador Robles
2023-09-28 16:17:56 +0000 UTCgood question. i don't know how you can censor.perhaps you can add to the negative prompts.
Furkan Gözükara
2023-09-28 15:11:17 +0000 UTCHello and congratulations for your great work. For security reasons in my use of the kaggle webui notebook solution (so great job) I would like to know what I should do so that the ui does NOT allow to generate nudity or NSFW in general, could I censor the notebook in some way so that it can not generate NSFW?, what models should load for it. Thank you
Salvador Robles
2023-09-28 14:45:04 +0000 UTChere recorded a video for you. working. also sent you a DM : https://huggingface.co/MonsterMMORPG/SECourses/resolve/main/2023-09-23%2014-35-29.mkv
Furkan Gözükara
2023-09-23 11:48:11 +0000 UTCwhen I try to launch web UI, got this error. /bin/bash: line 1: ./webui.sh: No such file or directory. Also ngrok error I get dial tcp 127.0.0.1:7860: connect: connection refused. Is it related to google ban? do you know where I got wrong?
Muhammad Lutfi
2023-09-23 10:09:03 +0000 UTCplease remove ending \ and try again and let me know
Furkan Gözükara
2023-09-18 21:43:33 +0000 UTCremove the very end \ and try again and let me know please
Furkan Gözükara
2023-09-18 20:33:18 +0000 UTCLaunching Web UI with arguments: -f --xformers --ckpt-dir /kaggle/temp/models --enable-insecure-extension-access --no-half-vae --lora-dir /kaggle/input/my-loras \ usage: launch.py [-h] [--update-all-extensions] [--skip-python-version-check] [--skip-torch-cuda-test] [--reinstall-xformers] [--reinstall-torch] [--update-check] [--test-server] [--log-startup] [--skip-prepare-environment] [--skip-install] [--dump-sysinfo] [--loglevel LOGLEVEL] [--do-not-download-clip] [--data-dir DATA_DIR] [--config CONFIG] [--ckpt CKPT] [--ckpt-dir CKPT_DIR] [--vae-dir VAE_DIR] [--gfpgan-dir GFPGAN_DIR] [--gfpgan-model GFPGAN_MODEL] [--no-half] [--no-half-vae] [--no-progressbar-hiding] [--max-batch-count MAX_BATCH_COUNT] [--embeddings-dir EMBEDDINGS_DIR] [--textual-inversion-templates-dir TEXTUAL_INVERSION_TEMPLATES_DIR] [--hypernetwork-dir HYPERNETWORK_DIR] [--localizations-dir LOCALIZATIONS_DIR] [--allow-code] [--medvram] [--medvram-sdxl] [--lowvram] [--lowram] [--always-batch-cond-uncond] [--unload-gfpgan] [--precision {full,autocast}] [--upcast-sampling] [--share] [--ngrok NGROK] [--ngrok-region NGROK_REGION] [--ngrok-options NGROK_OPTIONS] [--enable-insecure-extension-access] [--codeformer-models-path CODEFORMER_MODELS_PATH] [--gfpgan-models-path GFPGAN_MODELS_PATH] [--esrgan-models-path ESRGAN_MODELS_PATH] [--bsrgan-models-path BSRGAN_MODELS_PATH] [--realesrgan-models-path REALESRGAN_MODELS_PATH] [--clip-models-path CLIP_MODELS_PATH] [--xformers] [--force-enable-xformers] [--xformers-flash-attention] [--deepdanbooru] [--opt-split-attention] [--opt-sub-quad-attention] [--sub-quad-q-chunk-size SUB_QUAD_Q_CHUNK_SIZE] [--sub-quad-kv-chunk-size SUB_QUAD_KV_CHUNK_SIZE] [--sub-quad-chunk-threshold SUB_QUAD_CHUNK_THRESHOLD] [--opt-split-attention-invokeai] [--opt-split-attention-v1] [--opt-sdp-attention] [--opt-sdp-no-mem-attention] [--disable-opt-split-attention] [--disable-nan-check] [--use-cpu USE_CPU [USE_CPU ...]] [--disable-model-loading-ram-optimization] [--listen] [--port PORT] [--show-negative-prompt] [--ui-config-file UI_CONFIG_FILE] [--hide-ui-dir-config] [--freeze-settings] [--ui-settings-file UI_SETTINGS_FILE] [--gradio-debug] [--gradio-auth GRADIO_AUTH] [--gradio-auth-path GRADIO_AUTH_PATH] [--gradio-img2img-tool GRADIO_IMG2IMG_TOOL] [--gradio-inpaint-tool GRADIO_INPAINT_TOOL] [--gradio-allowed-path GRADIO_ALLOWED_PATH] [--opt-channelslast] [--styles-file STYLES_FILE] [--autolaunch] [--theme THEME] [--use-textbox-seed] [--disable-console-progressbars] [--enable-console-prompts] [--vae-path VAE_PATH] [--disable-safe-unpickle] [--api] [--api-auth API_AUTH] [--api-log] [--nowebui] [--ui-debug-mode] [--device-id DEVICE_ID] [--administrator] [--cors-allow-origins CORS_ALLOW_ORIGINS] [--cors-allow-origins-regex CORS_ALLOW_ORIGINS_REGEX] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE] [--disable-tls-verify] [--server-name SERVER_NAME] [--gradio-queue] [--no-gradio-queue] [--skip-version-check] [--no-hashing] [--no-download-sd-model] [--subpath SUBPATH] [--add-stop-route] [--api-server-stop] [--timeout-keep-alive TIMEOUT_KEEP_ALIVE] [--disable-all-extensions] [--disable-extra-extensions] [--ldsr-models-path LDSR_MODELS_PATH] [--lora-dir LORA_DIR] [--lyco-dir-backcompat LYCO_DIR_BACKCOMPAT] [--scunet-models-path SCUNET_MODELS_PATH] [--swinir-models-path SWINIR_MODELS_PATH] launch.py: error: unrecognized arguments: \
John Ceed
2023-09-18 19:41:16 +0000 UTCyou have to use ngrok and dont use share option. when share is enabled kaggle will terminate your session immediately. so start ngrok and use the new command in the notebook. after that go to the ngrok link you will see web ui there
Furkan Gözükara
2023-09-18 13:58:24 +0000 UTCusing the notebook, I don't get a shared gradio link using Kaggle, has something changed? It says "To create a public link, set `share=True` in `launch()`." I am using ngrok as well.
Ran Bensimon
2023-09-18 13:54:42 +0000 UTCi think you can contact and tell them it was a mistake. they are very harsh on NSFW :/
Furkan Gözükara
2023-09-17 12:44:53 +0000 UTCI can confirm that Kaggle instantly locks your account if you generate a nude image. I did not even intend to do so, with prompt "man renaissance" Could anyone suggest what to do next? Should I contact their support, or are they against people using their service for image generation?
j
2023-09-17 01:51:31 +0000 UTCcan you tell me exactly at which step you are having error? i just tested right now working. can you message me from discord and show me screenshot
Furkan Gözükara
2023-09-16 14:10:48 +0000 UTChello following your message on utube , i took a patreon account to follow your way to connect to kaddle . I followed every step but ended with this error 'dial tcp 127.0.0.1:7860: connect: connection refused' opening the ngrok link at the end of installation . any ideas ?
Luc Valigny
2023-09-16 09:13:10 +0000 UTCi think it depends on many factors. i am still using and there are a lot of still using person.
Furkan Gözükara
2023-09-10 12:12:47 +0000 UTCI’m hearing. Kaggle banning users who have SD notebooks without warning? Is this safe?
C05MIC Studio
2023-09-10 06:39:35 +0000 UTCdid you try to stop automatic1111 and start again? which model file are you using? it shouldnt happen. at worst i would stop and start session. also which gpu did you pick?
Furkan Gözükara
2023-09-09 22:14:57 +0000 UTCHi! Having some "trouble". I ran the file as you explain in the video, but everytime I click "Generate" button, it does the "Creating model from config" again, so every generation is about 2 minutes instead of few seconds... Any clue?
Jorge Reverte Sevillano
2023-09-09 21:50:48 +0000 UTCyou are welcome
Furkan Gözükara
2023-09-09 19:16:29 +0000 UTCTanks
Rafał Ryniak
2023-09-09 18:38:20 +0000 UTChello. updated the notebook and added that model. redownload notebook you will see it now
Furkan Gözükara
2023-09-09 15:01:25 +0000 UTChey, how to add the upscaler path, it is in the notebook database, but where should I paste the path so that "hi res" can see it, "4x_NMKD-Superscale-SP_178000_G.pth"
Rafał Ryniak
2023-09-09 14:39:47 +0000 UTCyou are welcome ty for comment
Furkan Gözükara
2023-09-08 20:15:45 +0000 UTCthank you very much, everything is clear, great job with Kaggle
Rafał Ryniak
2023-09-08 20:14:41 +0000 UTCroop extension not updated anymore and it requires some extra libraries. you can use runpod or google colab. you can upload model files via your own dataset or wget into correct folder. which upscaler you need? i can add to notebook
Furkan Gözükara
2023-09-08 20:11:33 +0000 UTCHi, is there a way to ROOP because it doesn't work, and how and where to upload the upscaler files.
Rafał Ryniak
2023-09-08 19:56:40 +0000 UTCi think TPU is not supported by pytorch libraries we are using atm. i also failed
Furkan Gözükara
2023-09-05 09:41:57 +0000 UTCyes. hopefully i will update this script and make a tutorial.
Furkan Gözükara
2023-09-05 09:41:04 +0000 UTCSDXL & ControlNet ? There's support now??
Ran Bensimon
2023-09-05 06:00:12 +0000 UTCHow to make it work on TPU?
Rasika Singal
2023-09-05 02:36:00 +0000 UTCThank you so much for comment and supporting me
Furkan Gözükara
2023-09-04 13:49:55 +0000 UTCAmazing! Already trying it. Thanks for your work!
San Milano
2023-09-04 13:43:19 +0000 UTCthank you so much for supporting me
Furkan Gözükara
2023-09-04 13:41:42 +0000 UTCWow, you're a genius!!!
anton art
2023-09-04 13:22:22 +0000 UTCYou are welcome. Thank you so much for comment.
Furkan Gözükara
2023-09-03 22:05:13 +0000 UTCAwesome!
Chase Woodhams
2023-09-03 22:04:14 +0000 UTC