{"id":11060,"date":"2024-05-23T11:19:11","date_gmt":"2024-05-23T03:19:11","guid":{"rendered":"https:\/\/www.1ai.net\/?p=11060"},"modified":"2024-05-23T11:19:11","modified_gmt":"2024-05-23T03:19:11","slug":"stable-diffusion%e5%b0%8f%e7%99%bd%e5%85%a5%e9%97%a8%e5%ad%a6%e4%b9%a0%e6%95%99%e7%a8%8b%ef%bc%9astable-diffusion%e8%bd%af%e4%bb%b6%e5%ae%89%e8%a3%85%e5%8f%8a%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/11060.html","title":{"rendered":"Stable diffusion beginner tutorial: Stable diffusion software installation and introduction"},"content":{"rendered":"<p data-pm-slice=\"0 0 []\">Hello everyone, here is the \"Stable diffusion beginner\" series Stable diffusion software installation and introduction, mainly introduces how to install Stable diffusion under Windows system, as well as the introduction of some features of the SD launcher, the overall process will be more detailed, more friendly to the little white people, I hope it can help you!<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"152\">I. What is Stable diffusion<\/h1>\n<p data-track=\"153\">I think we should have heard of the software Stable diffusion (subsequently referred to as SD), which is a text-to-image generation model released in 2022, and is simply one of the more popular and effective AI text-to-generation tools available.<\/p>\n<p data-track=\"155\">Compared to other AI text generation tools DALLE3,<strong>Midjourney[1]<\/strong>The biggest advantage of SD is that it's open source and free, and highly customizable, but it also has the obvious disadvantage of requiring your computer to have a video card, and it's also slightly tricky to install and difficult to get started with.<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"156\">II. What kind of configuration is needed?<\/h1>\n<p data-track=\"157\">Here is a quote from Nenly's summary of the minimum and maximum configurations, because it is placed on top of Notion, so some of you may have slower access, so I'll just post it straight away<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11061\" title=\"get-513\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-513.jpg\" alt=\"get-513\" width=\"1080\" height=\"473\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11062\" title=\"get-514\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-514.jpg\" alt=\"get-514\" width=\"1080\" height=\"475\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"158\">Third, what video card to choose?<\/h1>\n<p data-track=\"159\">Here is a simple science, graphics cards are not a single individual, but by the GPU chip, video memory, power supply, interface, circuit board, cooling module, etc. GPU chips are mainly supplied by NVIDIA, AMD and Intel, like we know ASUS, seven rainbow and other AIC manufacturers are mainly completed the design and production of circuit boards and heat dissipation.<\/p>\n<p data-track=\"161\">Generally we will refer to NVIDIA-supplied cards as N-cards and AMD-supplied cards as A-cards, and all of these cards can run SD, but at the moment, N-cards are recognized as the optimal solution, which will be easier to install because of the many tutorials available, and a little bit better than the same class of cards in terms of performance.<\/p>\n<p data-track=\"163\">What if you don't have an N-card and only have other graphics cards, don't be discouraged, it's just a matter of tossing it around more.<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"164\">IV. What system to choose?<\/h1>\n<p data-track=\"165\">Currently there are three common systems Window, Mac and Linux, of which Window and Linux I have installed, if you want me to recommend, I recommend using Window system, because there is the SD integration package of the big brother of Akiba, the installation is relatively simple, not too much trouble, and the function is more than Github on the <strong>stable-diffusion-webui[2]<\/strong> Much more, perfect for the little guy to get started.<\/p>\n<p data-track=\"167\">If you're a tosser, you can also try the original<strong>stable-diffusion-webui[3]<\/strong> , I've put out a tutorial on this before for your reference.<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"168\">V. How to install?<\/h1>\n<p data-track=\"169\">The installation of the Autumn Leaves Integration Pack under Window is described here, and it is relatively simple overall:<\/p>\n<p data-track=\"171\">1\u3001Download the integration package<\/p>\n<p data-track=\"172\">address:<strong>https:\/\/pan.quark.cn\/s\/2c832199b09b<\/strong><\/p>\n<p data-track=\"174\">Download link from the B station video of Akiba big brother, because the integration package is larger, like quark network disk need members to save, here to provide a way, is in a certain treasure Buy a short-term VIP, the price is not very expensive, about a few dollars, is equivalent to spend money to buy convenience. Of course you can also look online to see if there are other people put out the resources, depending on personal wishes.<\/p>\n<p data-track=\"176\">There are four main parts to this, of which the old version is the previous one, with few overall differences<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11063\" title=\"get-515\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-515.jpg\" alt=\"get-515\" width=\"1080\" height=\"278\" \/><\/div>\n<p data-track=\"178\">Controlnet is the ControlNet model, here just to provide, do not necessarily have to download, depending on individual needs, the installation method of the folder below a tutorial<\/p>\n<p data-track=\"180\">sd-webui-aki-v4.7.7z is the body of the integration package, when the download is complete, you have to decompress the<\/p>\n<p data-track=\"182\">Launcher run dependencies-dotnet-6.0.11.exe is to start SD before you need to install some dependencies, previously unused need to double-click to install (installed without), otherwise SD may be due to a lack of dependencies lead to startup failure!<\/p>\n<p data-track=\"184\">2. Start SD<\/p>\n<p data-track=\"185\">Once all the above steps have been performed, find the executable file in the integration package directory and double-click on it<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11064\" title=\"get-516\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-516.jpg\" alt=\"get-516\" width=\"1080\" height=\"596\" \/><\/div>\n<p data-track=\"187\">3, double-click the following interface will appear, click the bottom right of the one-click start can be<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11065\" title=\"get-517\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-517.jpg\" alt=\"get-517\" width=\"1080\" height=\"631\" \/><\/div>\n<p data-track=\"189\">4, click a black box will appear, do not worry, this is the normal operation of the situation<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11066\" title=\"get-518\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-518.jpg\" alt=\"get-518\" width=\"1080\" height=\"624\" \/><\/div>\n<p data-track=\"191\">5, if your browser appears on this page shows that the great success!<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11067\" title=\"get-519\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-519.jpg\" alt=\"get-519\" width=\"1080\" height=\"440\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"192\">VI. Installation Q&amp;A<\/h1>\n<p data-track=\"193\">1. What if I'm a Mac?<\/p>\n<p data-track=\"194\">You can refer to nenly's big brother's tutorial:<strong>https:\/\/nenly.notion.site\/c5805e7ae26b4683a277c5586ea05904<\/strong><\/p>\n<p data-track=\"196\">2\u3001What should I do if I have problems with the installation?<\/p>\n<p data-track=\"197\">First, if you encounter an error, please go to the \"Troubleshooting\" page of the launcher and scan it, most of the problems will be solved!<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11068\" title=\"get-520\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-520.jpg\" alt=\"get-520\" width=\"1080\" height=\"451\" \/><\/div>\n<p data-track=\"199\">Second, you can refer to the NOTION tutorial above, which also has solutions for common errors, since I installed it quite smoothly, so I won't go into it here.<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"200\">VII. Introduction to starters<\/h1>\n<p data-track=\"201\">Akiha Daiko's launcher has a lot of features, so here's a primer on some of the more commonly used features to give you an impression.<\/p>\n<p data-track=\"203\">7.1 Folder List<\/p>\n<p data-track=\"204\">There is a folder list on the first page of the launcher, in which the extension folder is the folder where SD extensions are placed, and we will follow up with various extensions to achieve the effect of accurate SD images; the temporary folder is the cache files generated in the process of using SD, which can regularly clean up the unwanted files and reduce the disk occupancy; the super-sub output folder is the folder where the super-resolution models are placed, which can magnify the photos and fill in the details to keep the images clear; the others are the directory where the images are placed, which will not be introduced here. The super-resolution output folder is a folder for super-resolution models, these models can enlarge the photo and fill in the details, so that the image remains clear; the other is the image placement directory, which will not be introduced here.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11070\" title=\"get-522\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-522.jpg\" alt=\"get-522\" width=\"1080\" height=\"347\" \/><\/div>\n<p data-track=\"206\">7.2 Advanced Settings<\/p>\n<p data-track=\"207\">The advanced settings allow you to change the engine, for the big guys with multiple graphics cards; you can also fix it by turning on graphics memory optimization if the card has a small video memory;<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11069\" title=\"get-521\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-521.jpg\" alt=\"get-521\" width=\"1080\" height=\"174\" \/><\/div>\n<p data-track=\"209\">Here you need to pay attention to the calculation precision, AI models have double precision, single precision and half precision, corresponding to 64-bit, 32-bit and 16-bit floating point numbers respectively. Higher computational precision means more computational resources, data transfer and memory storage are required, and its cost will be greater, so half-precision optimization is turned on by default.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11071\" title=\"get-523\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-523.jpg\" alt=\"get-523\" width=\"1080\" height=\"255\" \/><\/div>\n<p data-track=\"211\">However, there are many types of graphics cards, some of which do not support half-precision, so if you turn on the half-precision optimization, you will get an error and a black picture will appear.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11072\" title=\"get-524\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-524.jpg\" alt=\"get-524\" width=\"1080\" height=\"218\" \/><\/div>\n<p data-track=\"212\">Above is the NVIDIA graphics card support for half-precision at:<\/p>\n<p data-track=\"213\">https:\/\/docs.nvidia.com\/deeplearning\/tensorrt\/support-matrix\/index.html#hardware-precision-matrix<\/p>\n<p data-track=\"214\">There is also a network setting inside the advanced settings, which is actually a feature that comes with the Gradio library, used to control whether others can access your web page, generally do not need to be turned on (and is not recommended to turn it on)<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11073\" title=\"get-525\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-525.jpg\" alt=\"get-525\" width=\"1080\" height=\"284\" \/><\/div>\n<p data-track=\"216\">Even if it's on, you have to install the frpc package, otherwise you won't be able to generate the shared link.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11074\" title=\"get-526\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-526.jpg\" alt=\"get-526\" width=\"1080\" height=\"265\" \/><\/div>\n<p data-track=\"218\">7.3 Versioning<\/p>\n<p data-track=\"219\">Used to manage the version of the launcher kernel and extensions, it is generally not recommended to update, it is possible that the kernel version is updated to conflict with the extension version, it is recommended to update it only if needed.<\/p>\n<p data-track=\"221\">Installation of new extensions can be done here in the version manager (newer versions are available), or in the web extensions, which is where I usually go.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11075\" title=\"get-527\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-527.jpg\" alt=\"get-527\" width=\"1080\" height=\"473\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11076\" title=\"get-528\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/05\/get-528.jpg\" alt=\"get-528\" width=\"1080\" height=\"347\" \/><\/div>\n<p data-track=\"223\">7.4 Shortcut Tools and Settings<\/p>\n<p data-track=\"224\">The shortcut tools provide some secondary functions, while the settings section allows us to specify the default browser, which is usually recommended to be Google Chrome or Microsoft's own browser. If you need to download some more specific models or extension resources, you may need to use the proxy settings.<\/p>\n<p data-track=\"226\">See here friends believe that the installation of SD has been understood, but want to completely master SD, or have to take action, after all, practice makes perfect! If this article is helpful to you, please also more<strong>kudos and support<\/strong>The following will also continue to come out about the<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>The little white tutorial.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Hello, here is the \"Stable diffusion beginner\" series Stable diffusion software installation and introduction, mainly introduces how to install Stable diffusion under Windows, as well as some of the functions of the SD launcher introduction, the overall process will be more detailed, more friendly to the white, I hope to help you! First, what is Stable diffusion Think everyone should have heard of Stable diffusion this software (subsequently referred to as SD), which was released in 2022 a text-to-image generation model, simply put, is currently a more popular and more effective AI text-to-graphics tool. Compared to other AI text generation tools DA<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[197,198],"collection":[262],"class_list":{"0":"post-11060","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-stable-diffusion","10":"collection-stablediffusion"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/11060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=11060"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/11060\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=11060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=11060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=11060"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=11060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}