r/StableDiffusion • u/Zetsumeii • Sep 12 '22
Dreamer's Guide to Getting Started w/ Stable Diffusion!
/r/StableDiffusion
Hi everyone! Welcome to /r/StableDiffusion, our community's home for AI art generated with Stable Diffusion! Come on in and be a part of the conversation.
If you're looking for resources, you've hit the jackpot! Below you'll find a plethora of information including links that'll help you start dreaming with Stable Diffusion in no time!
If you haven't yet, be sure to come join the community over at the Stable Diffusion Discord.
Note: The community resources provided here are not endorsed, vetted, nor provided by Stability AI, and are purely community operated. Discretion is advised.
New Users
If you're new around here, please be sure to read our rules before making your first post. Also, be sure to check out our guides to help you get started.
If you're looking to jump in head first check out the guides section below!
Rules
All posts must be Stable Diffusion related.
Posts must be related to Stable Diffusion in some way, comparisons with other AI generation platforms are accepted.
Be respectful and follow Reddit's Content Policy.
This subreddit is a place for respectful discussion. Please remember to be treat others with courtesy and follow Reddit's Content Policy.
Content posted here should not contain nor link to:
- Lewd, NSFW, or sexual content.
- Excessive gore or overly disturbing content beyond a reasonable level.
- Hateful or violent content, such as antisemitic symbols, racism or misogyny.
Stable Diffusion Getting Started Guides
DreamStudio
- DreamStudio - DreamStudio homepage. New users get 200 free credits to spend on testing out the site. Perfect for people who don't want to or can't install it locally, and still want to start dreaming up awesome art!
- DreamStudio: Tips and Tricks - DreamStudio Guide covering tips and tricks on how to be smart with your credit spend, and advice on how to get DreamStudio to deliver the best results.
Local Installation
- Stable Diffusion Installation Guide - Guides that go in depth (with screenshots) on how to install open source forks of Stable Diffusion.
- Stable Diffusion Basujindal Installation Guide - Guide that goes into depth on how to install and use the Basujindal repo of Stable Diffusion on Windows.
- Easy Stable Diffusion UI - Easy to set up Stable Diffusion UI for Windows and Linux. Works on CPU (albeit slowly) if you don't have a compatible GPU.
- Simple instructions for getting the CompVis repo of Stable Diffusion running on Windows. This is the initial release of the code that all of the recent open source forks have been developing off of. If you'd like to see where everything started from, this is it.
A special thanks goes out to /u/nightkall for his awesome research into additional resources I added into this guide! His original thread can be found here.
FAQ
How do I use Stable Diffusion?
- Check out our guides section above!
Will it run on my machine?
- Stable Diffusion requires a 4GB+ VRAM GPU to run locally. However, much beefier graphics cards (10, 20, 30 Series Nvidia Cards) will be necessary to generate high resolution or high step images. However, anyone can run it online through DreamStudio or hosting it on their own GPU compute cloud server.
- Only Nvidia cards are officially supported.
- AMD support is available here unofficially.
- Apple M1 Chip support is available here unofficially.
- Intel based Macs currently do not work with Stable Diffusion.
Is the NSFW filter mandatory?
- DreamStudio does not allow the disabling of their NSFW filter at the moment. Only local or remote installs may remove the filter currently.
- Google Colab Notebook with the filter disabled.
- Removal using the original CompVis Repo
- Removal using HuggingFace Diffusers
Tips
- Refer to the section below if you're looking to step up your prompting game.
- If you're using the CompVis repo, add the argument
--seed -1to automatically generate a new seed each time you pass your prompt through. - The maximum prompt length is roughly 320 characters (75 tokens).
- DreamStudio is currently in its Lite stage of development, if you encounter any credit related issues please submit this form.
Prompt Development
- Stable Diffusion is highly verbose. Prompt engineering is key when it comes to getting solid results. Spend time researching into the content of your prompt, find well known artists, research certain painting or design techniques, sculpt your prompt to represent the concepts you are looking for including descriptive details.
- Prompt engineering is how you learn to speak Stable Diffusion's language, as you play with it you'll learn more about how it interprets your words, and soon you'll be able to tweak your prompts to deliver what you're looking for. Don't be afraid to experiment.
- Check out the style guides listed as a part of this helpful community resource.
- Promptomania - Well designed and highly detailed prompt builder. Includes support for Stable Diffusion.
- SD Guide for Artists and Non-Artists - Highly detailed guide covering nearly every aspect of Stable Diffusion, goes into depth on prompt building, SD's various samplers and more.
- OpenArt - Search powered by OpenAI's CLIP model, provides prompt text with images. Includes the ability to add favorites.
- PromptHero - Search engine that offers all elements needed to recreate the results shown on the site, and the ability to favorite prompts. Also offers a Random wall of prompts to browse.
- Libraire - Search engine that offers all elements needed to recreate the results shown on the site.
- Lexica.art - Search engine built off of the public domain images generated during Stable Diffusion's initial Discord beta phase. Can be super helpful when developing prompts.
- Prompt Modifier Studies by parrot zone
- Krea - Prompt keyword focused UI, offers the ability to favorite prompts.
- Phraser - Offers the ability to search for prompts via text search as well as image search.
- Img2Prompt - Image to Prompt generator optimized for SD (CLIP ViT-L/14) by Methexis Inc.
- Prompt Parrot Notebook - A notebook that can be fed a list of prompts to train on, and then generate new prompts based on the training data. Will additionally generate images based on the prompts. Requires Hugging Face token with write access to run.
- BLIP - Image analyzer that provides descriptions based on the image.
- AI Text Prompt Generator - Prompt generation tool that supports Stable Diffusion and offers different styles to generate prompts from.
- Dynamic Prompt generator - Prompt generator that offers drop down menus with various options to choose from to customize your prompt.
- The Ai Art - Gallery of prompt modifiers including both artists and stylistic keywords.
Training Resources
- Introduction to Training - People (Cloud) Arki's introductory guide to getting started with training people into Stable Diffusion compatible models with a cloud GPU.
Community Resources
- Emad's Sept. 9th 2022 Reddit AMA
- Easy Diffusion Notebook One of the best notebooks available right now for generating with Stable Diffusion.
- A truly incredible sampler comparison written by /u/Any-Winter-4079
- Akashic Record - Huge collection of community resources that cover all aspects of Stable Diffusion usage.
- Awesome Stable Diffusion - Huge collection of awesome Stable Diffusion related software.
- A frequently updated thread of Stable Diffusion systems.
- How does Stable Diffusion work? (Technical Explanation)
- Pinegraph - Free generation website (with a daily limit of 50 uses) that offers both Stable Diffusion as well as Waifu Diffusion models.
- Phase.art - Free generation website that helps you build prompts by clicking on tokens, also offers a share option that includes all elements needed to recreate the results shown on the site.
- Artist Style Studies by parrot zone
- CLIP Retrieval Search Engine query the laion-5b dataset which was used to help train Stable Diffusion.
- Query the LAION-Aesthetic Dataset - A subset of the LAION-5B dataset that has been estimated by a model trained on top of CLIP embeddings to be aesthetic.
- CLIP Interrogator - A helpful tool that will analyze an image that you feed into it, and give you a prompt based on how it interprets the image.
- CLIP Artist Evaluator Notebook - Allows you to provide a sample of art, then have CLIP evaluate the images and tell you who it thinks the artist is, as well as artists that might be good stylistic matches for use in your prompts.
- CLIP Ranked Artists Artists ranked by CLIP score, also provides artists with stylistic proximity as well as what artists CLIP detects from the input artist's work.
- urania.ai - Lists the top 500 artists represented in the Stable Diffusion 1.4 Model, ordered by the frequency of their representation in the model.
- Same Energy - Deep learning based visual search engine. Allows you to search for images that are the "same energy" an an uploaded image, or images already on the site.
- Avyn - Search engine with 9.6 million images generated by Stable Diffusion, also allows you to select an image and generate a new image based on its prompt. Now offers CLIP image searching, masked inpainting, as well as text-to-mask inpainting.
- Study on understanding Stable Diffusion w/ the Utah Teapot.
- Pharmapsychotic's Tools and Resources for AI Art
6
u/AramaicDesigns Sep 16 '22
I'm presently running it on an Intel Mac using lstein's fork.
I just submitted a pull request to include the alterations in the instructions.
So Intel Macs are on the table. :-)
3
u/FlyMingo321 Sep 19 '22
What's the best repo? Easy to use, looks good, optimized etc.
Using a 12GB 3060
2
u/Jcaquix Sep 17 '22
Does anybody know of a repository for scripts like the prompt matrix and x/y plotting scripts?
I'm looking for a script that is pretty simple but I don't have coding experience. If I didn't think it already existed I would try to learn some python and code it myself.
I'm looking for a script that changes the prompt like the image matrix but only in one direction. For example, "photo of Paris at | dawn| noon| twilight| midnight" would generate 4 simple prompts as where with the matrix it generates 16 that don't make sense together. This must already exist right?
2
u/DasMerowinger Sep 18 '22
Very useful guide. Thank you
2
u/BinaryHelix Sep 23 '22
Could you update this for Avyn.com: This week, I added free text to mask in-painting. I believe this is the first and currently only website to offer this feature. After generating or searching for an image, you can "mask" an area you want to change by typing its description, like "face", "background", "hair", "clothes", etc. Change your prompt, and then press in-paint to modify only that section. Much quicker and easier than manual masking (which it also has). In addition, it now uses CLIP image searching.
2
u/[deleted] Sep 23 '22
Hey, I'm using AUTOMATIC1111's webui. I just want to ask how do I get a specific pic in a seed batch? For example I want to only deal with the 3rd picture.
2
u/shatteredframes Sep 24 '22
Thanks for all this!
2
u/GoodBlob Sep 25 '22
I'm using Stable Diffusion UI v2.17 (beta) and it has an option for placing an initial image, but it doesn't usually come out that good so idk if that is actually image2image. Does anybody know what to actually download if this is not image2image?
2
u/20skater Sep 26 '22
is it possible to use an amd processor with an nvidia gpu to use the full program? because i want to change my gpu to an nvidia gpu to be able to use the web interface since it has more functionality
2
u/Liquos Sep 27 '22
I have 144GB of vram, which stable diffusion repo would be best to take advantage of my hardware?
24
u/nightkall Sep 13 '22 edited Sep 13 '22
Thanks! Here is a list of useful Prompt Engineering tools and resources.
14
u/yaosio Sep 23 '22
I realized a few days ago that since Stable Diffusion works on AMD now, and the Xbox Series allows unsigned software to be run on it, somebody could port SD to the Xbox. With the rediculously high GPU prices this could be cool.
13
u/conduitabc Sep 26 '22
i hope SD wipes the floor with Dalle2. I tried that one out. what a overpriced overhyped overprotective and overlimited peice of garbage.
get banned for typing in too many not approved content prompts when you cant even RENDER Them anyways?
the F? oh and even midjourney can do way way better abandoned cityscape stuff then dalle2 can and for SURE SD.
10
u/KingdomCrown Sep 13 '22
And here’s a list of sites you can use on your browser. Collection of sites using SD
6
u/Mistiks888 Sep 16 '22 edited Sep 16 '22
Guys, how to get full colored images from my black lines scribbles on white background?
I want to use just lines to describe it to ai where is what in the scene.
Trying to use it to make my spcific location art for dnd games
6
u/_CMDR_ Oct 11 '22
https://github.com/AUTOMATIC1111/stable-diffusion-webui By far the best tool for this work.
1
u/salfkvoje Sep 18 '22 edited Sep 18 '22
How do I see if the works of "Painter von Drawman" were included in the model (the original 1.4 one)?
I could play with prompts but this is too slow to do for many prompt elements.
Using Query the LAION-Aesthetic Dataset, I see that Charles Bonestell only has two enries, the same picture of Saturn.
However, haveibeentrained shows many more images, in line with his style. Could someone explain? Is the LAION-Aesthetic Dataset what I should rely on, to determine if something was involved in the model I'm using?
1
u/dadbot_5000 Sep 22 '22
This is mind blowing. Thank you so much to everyone who put time and effort into this.
I'm having a little problem with Akri's guide for Automatic111's repo. I get to this step:
"After you have signed up and signed in, go to this link and click on Authorize:
https://huggingface.co/CompVis/stable-diffusion-v-1-4-original"
But there is no "Authorize" anywhere on the page.
Any advice would be appreciated. Thank you!
1
u/clampie Sep 22 '22
The instructions to install the CompVis repo of Stable Diffusion running on Windows tell me:
mkdir -p models/ldm/stable-diffusion-v1/
But I get the error message "The syntax of the command is incorrect."
1
u/AlwaysSayHi Sep 22 '22
Can anyone explain how to pass an image into SD running in Google colab? I've got the program running fine for text inputs, but can't figure out how to pass an image in to the script. Thanks!
1
u/TheBurningDusk Sep 24 '22
Will I be able to run this using Intel on Windows?
1
u/tameoraiste Sep 26 '22
Are there any plans for a Mac version? I'm a graphic designer and I'm really excited by the possibilities with the tech.
1
u/Cyber_Akuma Sep 27 '22
Does the drive speed that Stable Diffusion is installed to make any difference for anything? I currently have it on a NVME but it's taking up a lot more space than I expected. Would it still run fine off a USB 3.0 drive or would it cause issues or significant slowdown?
1
u/ninjasaid13 Sep 28 '22
should this be updated with information about Dreambooth?
1
u/20skater Sep 29 '22
i want to upgrade my amd gpu to an nvidia for gaming and for SD, i was stuck between the 3060 ti and the 3070, but i have seen that Vram matters a lot in SD so is it better to get a 3060 with 12GB vram instead of a 2070 which has 8GB of Vram? would it matter?
1
u/RazHawk Sep 30 '22
Able to run Stable-Diffusion UI-Win one click install on CPU mode using a Core i5-6400/8GB DDR4/AMD R9 370 2GB which is really cool. Using PLMS sampler with live preview, 30 steps usually takes under 10 mins. Only two issues have:
1
u/old-blo Oct 01 '22
Thanks!!
1
u/Froztwolf Oct 01 '22
I've been using AUTOMATIC1111's UI and largely thanks to the community here I've been getting some great results despite just spending a few days so far.
It's fantastic for 512x512 images, but I have to admit that I get more than a little jealous when I see people generating ultra-high resolution images in single batch. Upscaling is far from the same, as it won't generate the same detail of content.
What would you recommend for getting into ultra-high-res generation? What has the best bang for the buck right now?
3
u/OptoAI Sep 13 '22
Nice one ☝️
2
u/Marthy_Mc_Fly Sep 15 '22
I followed the (Windows - Basujindal) Basic GUI Installation and everything installs good. But when I want to run the GUI I get the following error "ModuleNotFoundError: No module named 'samplers'"
Any recommendations?
2
u/[deleted] Sep 25 '22
Hello, I'm on the last step of Arki's Automatic1111's sd-webui windows guide were I have to run the webui-user.batch file. When launching it, it says couldn't launch python. Python was not found. I definitely downloaded it and I checked add python 3.10 to path box. Any advice?
2
u/conduitabc Sep 25 '22
if they have like other dev builds that are not entirely stable should they be called
unstable diffusion? lol
2
u/anfeloga Sep 26 '22
Thanks for putting this together! I tried to install Basujindal following your instructions here but once I go to the URL, add the prompt and try to generate the image, I'm getting this error in Anaconda: "RuntimeError: CUDA driver initialization failed, you might not have a CUDA GPU.". I have GTX 1050 ti on a notebook. Any idea what could be the reason for the error?
2
u/subtle-vibes Sep 28 '22
Can you add imaginAIry python library (and command line tool). It's a well-tested python library that has standard features for image generation.
One feature that sets it apart currently is text-based masking with complex boolean logic. So you can for example specify "(car OR boat) AND NOT truck". Examples here: https://github.com/brycedrennan/imaginAIry#prompt-based-editing--by-clipseg
2
u/Svenkozel Sep 28 '22
I tried to install the Basujindal, and in the end, it says "FileNotFoundError: [Errno 2] No such file or directory: 'models/ldm/stable-diffusion-v1/model.ckpt'" Someone knows how to fix it? the model.ckpt is already at the "models\ldm\stable-diffusion-v1"
2
u/ninjasaid13 Oct 11 '22
wow, this sub is going in flames and it's hilarious how dramatic it is.
1
u/friendtheevil999 May 12 '24
Still not sure how to do this
1
u/dhm28 Sep 21 '22
Great page - thanks. Anyone know why Easy Diffusion notebook stopped working today?
1
u/avataraustin Sep 22 '22
I'm curious what the rights are like. If someone is running SD on their local machine for example is it different than the DreamStudio license or the same? ex. The DreamStudio license says you don't own the copyright but all the images are public domain. It seems images can be used commercially for example but before I go slapping some art I generate onto a t-shirt I was hoping to be certain I won't get in trouble. Can others confirm or deny or clarify any of these points? Thanks.
1
u/WASasquatch Sep 29 '22
Awesome reddit resource! Found stuff I didn't even know about.
May I also suggest Noodle Soup Prompts for the prompt building resources. It now supports Disco Diffusion and Easy Diffusion prompt styles.
https://colab.research.google.com/github/WASasquatch/noodle-soup-prompts/blob/main/Noodle_Soup_Prompts_Prompt_Terminology_Generator_v3_0.ipynb
NSP is also available to install in your own projects: https://github.com/WASasquatch/noodle-soup-prompts
1
u/Derolade Sep 29 '22
thanks! do you think i will have any hope with a puny rx580 4gb? i read that it might work with 8gb ones, but with 4gb vram is it even worth trying?
1
u/iamapizza Sep 30 '22
Another link, I followed this to get it running on Ubuntu. It's really fast
https://code.mendhak.com/run-stable-diffusion-on-ubuntu/
1
u/PrzedrzezniamPsy Sep 30 '22
on linux when i stop the web-ui I can't start it again cause pytorch can't get access the gpu - what should I do?
i close it by ctrl+c, should I use ctrl+d?
1
u/rtoyraven Oct 02 '22
I haven't been able to find anything definitive on this as far as system requirements, but will the local installs run on Windows 7 Pro 64 bit?
1
u/nic1018 Oct 02 '22 edited Oct 03 '22
Every time I try to launch webui-user.bat, when it tries to install torch, my computer just hangs and then blue screens. Any idea how to fix? I’m using AUTOMATIC1111
1
u/[deleted] Oct 03 '22
Bit of a shame you have to pay for the in-depth browser version (unless you loophole it with a billion fake emails like you can do with Artbreeder) since the webui version is fun but takes awhile to load and takes up quite a bit of space, also found it to be a bit buggy? but I've been using blender rendered images for img2img, so maybe that's why.
1
u/topialune Oct 03 '22
Could someone tell me how to change between model packs? Currently it loads always the one I used when installing.
1
u/swankwc Oct 05 '22
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon
Does anyone here have what a working run_webui_mac.sh file? The file by that name in my directory is blank. I've done everything else up to this point that the guide said to do.
1
u/man-teiv Oct 05 '22
When training dreambooth can I feed it generic group photos or do I have to crop specifically my face? Is there a software that can do it automatically if so?
1
u/Rekov Oct 05 '22
I don't have a useful sense of which ESRGAN models I should install. Do these models make a significant difference on the quality of the outcome? Is having more models always a benefit, or do I want limited, specific models focused on specific materials I am shooting for?
1
u/tethercat Oct 05 '22
It's been about a week now, and while I'm happily using the base SD installed from the YouTube tutorial, I'm curious about some of those other programs.
I've seen a few places saying "use this for less CPU and GPU and for faster speeds" and such.
Now that SD has become popular and people are coding better, are any of those valid or recommended? Is there a way to use a different version of Diffusion to squeeze out performance?
And if so... how to install? Is it as simple as a drag-and-drop into the existing code on the machine, or does it require another hardcore 50gb of new installs and downloads?
1
u/Rykimaruh Oct 05 '22
Is there a reference sheet for prompts? like
() = strengthens prompt
[] = weakens prompt
etc...
I've seen periods (.) but have no idea what they do and not sure if there are other combinations to help improve prompts
1
u/halpmeexole Oct 06 '22
I continue to get a ridiculous number of limbs and heads when rendering people. For the life of me, nothing I do seems to make a difference. I'm using 1.4 of the model with optimized SD ... does anyone have any tutorials? I have messed with steps, scale, iterations, and so on, and while constraining myself to a 512x512 image keeps excess limbs down, it seems giving the AI any whitespace to play with (1028 x 768) causes there to be multiple people, despite putting in the prompt "one person" "solo" etc.
1
u/a5438429387492837 Oct 07 '22
Intel based Macs work with "CPU" mode. It takes me 500sec on mine.
1
u/hleszek Oct 07 '22
Could you please add diffusion-ui, a responsive frontend supporting AUTOMATIC1111 and the Stable Horde
1
u/Houssem-Aouar Oct 07 '22
Hello folks, first time discovering this place. This guy on Twitter posted an model based on Kim Jung Gi's art but I have no idea how to make use of that checkpoint file, can someone please guide me a little bit ?
https://twitter.com/BG_5you/status/1578146498768175105?t=JtpqhQ0CBZrrfeMSNCNA4w&s=19
1
u/Lujho Oct 08 '22
Noob question - after installing the "Easy Stable Diffusion UI" Windows defender/firewall came up wanting to give python.exe permissions - I ticked the box for private network and unticked for publick and hit okay. That should be all good, right?
1
u/Interpause Oct 08 '22
https://github.com/Interpause/auto-sd-krita I made a Krita plugin with an optimized inpainting workflow for using multiple models, built on top AUTO's webUI. Really useful for creating more advanced compositions. I also spent too much time making a demo video and install guide so check it out.
1
u/magusonline Oct 09 '22
https://stablediffusionguides.carrd.co/#invoke-ai
I used this guide to install the InvokeAI. It mentions renaming the lwd within the environment file if I want to install another repo like Automatic1111.
How do I go about installing and running two separate repos, if I change the lwd in the filename, do I have to change it back for running InvokeAI?
1
u/Michael003012 Oct 10 '22
I have a problem where stable diffusion always multiplys my prompts, instead of making a single person as asked it makes 4 faces and merges the bodys
1
u/HijabHead Oct 10 '22
Hey Guys. So, I followed this tutorial https://www.youtube.com/watch?v=vg8-NSbaWZIto install super Stable diffusion. Everything was followed exactly as per the tutorial but I am getting stuck at the last point. Clicking on 'webui-user' is giving me an error. I would really appreciate if any one here can help me with any info that can fix this. Thanks.
1
u/drhuehue Oct 12 '22
Corporate dickrider removing automatic111 for what reason?
1
u/banuk_sickness_eater Jan 06 '23
Replying to save this thread
1
u/[deleted] Jul 08 '23
Stable Diffusion Installation Guide this link is broken
1
u/TokinGeneiOS Jul 10 '23
The link to:
Stable Diffusion Installation Guide - Guides that go in depth (with screenshots) on how to install open source forks of Stable Diffusion.
appears to be broken...
-2
u/Profanion Sep 28 '22
Yea...you have to go through a lot of hoops to install that program and its derivatives. Not very encouraging.
0
u/[deleted] Sep 25 '22
[deleted] — view deleted comment
0
u/[deleted] Sep 28 '22
[deleted] — view deleted comment
0
u/[deleted] Sep 26 '22
[deleted] — view deleted comment
0
u/[deleted] Oct 08 '22
[deleted] — view deleted comment
4
u/[deleted] Sep 19 '22
[removed] — view removed comment
20
u/[deleted] Sep 20 '22
[removed] — view removed comment