{"id":27703,"date":"2025-02-07T09:46:49","date_gmt":"2025-02-07T01:46:49","guid":{"rendered":"https:\/\/www.1ai.net\/?p=27703"},"modified":"2025-01-24T10:49:54","modified_gmt":"2025-01-24T02:49:54","slug":"stable-diffusion%e6%80%8e%e4%b9%88%e7%94%a8%ef%bc%9fstable-diffusion%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2%e4%b8%8e%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/27703.html","title":{"rendered":"How does Stable Diffusion work?Stable Diffusion Local Deployment and Configuration"},"content":{"rendered":"<p>Today, we will explore together how to incorporate<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>Install it on our local computer and generate our first image. If you can't wait to try out this AI drawing tool, then follow along with me!<\/p>\n<p>I. Stable Diffusion Computer Configuration Requirements<\/p>\n<p>Before we start the installation, we need to know the computer configuration requirements for Stable Diffusion. Below is an overview of the hardware configuration requirements:<\/p>\n<ul>\n<li><strong>Memory<\/strong>: A minimum of 8GB is required, 16GB or higher is recommended.<\/li>\n<li><strong>GPU<\/strong>: It must be a graphics card model starting with NVIDIA with at least 4GB of video memory, 6GB or 8GB is recommended, higher is better.<\/li>\n<li><strong>CPU<\/strong>: As long as the graphics card is passable and the CPU isn't too bad, it's basically good enough.<\/li>\n<\/ul>\n<p>II. Installation steps<\/p>\n<p>Step 1: Download the Stable Diffusion file<\/p>\n<p>Link:https:\/\/pan.baidu.com\/s\/16EQ-yar1VMoVEHjaqLUDNg<\/p>\n<p>Extract code:s8qx<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27704\" title=\"337f3e37j00sqknki001gd000u0007rm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/337f3e37j00sqknki001gd000u0007rm.jpg\" alt=\"337f3e37j00sqknki001gd000u0007rm\" width=\"1080\" height=\"279\" \/><\/p>\n<p>Step 2: Unzip the Stable Diffusion file<\/p>\n<p>Next, we need to unzip the Stable Diffusion zip file. It is recommended to unzip to a root directory that is not the C drive to save space on your system disk.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27705\" title=\"647dcddcp00sqknki000bd000ot003bm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/647dcddcp00sqknki000bd000ot003bm.png\" alt=\"647dcddcp00sqknki000bd000ot003bm\" width=\"893\" height=\"119\" \/><\/p>\n<p>Step 3: Start Stable Diffusion<\/p>\n<p>After unzipping, double-click on the \"A Eisai Launcher\" file in the package directory and Stable Diffusion will start updating and launching.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27706\" title=\"79d753bbj00sqknkj003md000u0009cm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/79d753bbj00sqknkj003md000u0009cm.jpg\" alt=\"79d753bbj00sqknkj003md000u0009cm\" width=\"1080\" height=\"336\" \/><\/p>\n<p>Step 4: Accessing the Stable Diffusion Interface<\/p>\n<p>Click on the One-Click Launch button, then the command line interface will pop up, and after a few moments, the Stable Diffusion interface will automatically open in your browser.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27707\" title=\"4c8038a1j00sqknkj009nd000u000g9m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/4c8038a1j00sqknkj009nd000u000g9m.jpg\" alt=\"4c8038a1j00sqknkj009nd000u000g9m\" width=\"1080\" height=\"585\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27708\" title=\"32bda9fbj00sqknkj002td000u000fgm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/32bda9fbj00sqknkj002td000u000fgm.jpg\" alt=\"32bda9fbj00sqknkj002td000u000fgm\" width=\"1080\" height=\"556\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27709\" title=\"303df07dj00sqknkj0055d000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/303df07dj00sqknkj0055d000u000esm.jpg\" alt=\"303df07dj00sqknkj0055d000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>Step 5: Generate the first image<\/p>\n<p>In the text-generated image tab forward prompt word input box, type 1girl and click the Generate button to generate the first image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27710\" title=\"a55cd44fj00sqknkj0073d000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/a55cd44fj00sqknkj0073d000u000esm.jpg\" alt=\"a55cd44fj00sqknkj0073d000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>III. Starter Parameter Setting<\/p>\n<p>Before starting Stable Diffusion, we also need to make some parameter settings in the launcher screen.<\/p>\n<ul>\n<li><strong>generation engine<\/strong>: Ensure that the correct GPU is selected as the generation engine.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27711\" title=\"4b8dcd1ap00sqknki000wd000u00045m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/4b8dcd1ap00sqknki000wd000u00045m.png\" alt=\"4b8dcd1ap00sqknki000wd000u00045m\" width=\"1080\" height=\"149\" \/><\/p>\n<ul>\n<li><strong>Video Memory Optimization<\/strong>: Select the appropriate optimization option based on the size of the video memory.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27712\" title=\"d67022a0j00sqknki001ld000u0005zm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/d67022a0j00sqknki001ld000u0005zm.jpg\" alt=\"d67022a0j00sqknki001ld000u0005zm\" width=\"1080\" height=\"215\" \/><\/p>\n<ul>\n<li>\u00a0**Cross-Attention Optimization Scheme:** Trying to use xFormers (recommended)<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27713\" title=\"ab595b09j00sqknkj0038d000u000agm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/ab595b09j00sqknkj0038d000u000agm.jpg\" alt=\"ab595b09j00sqknkj0038d000u000agm\" width=\"1080\" height=\"376\" \/><\/p>\n<ul>\n<li><strong>Calculation Accuracy Settings<\/strong>: Turn off VAE half-precision optimization and numeric overflow checking to reduce the probability of wrong pictures.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27714\" title=\"7cc83452j00sqknki001nd000u0006ym\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/7cc83452j00sqknki001nd000u0006ym.jpg\" alt=\"7cc83452j00sqknki001nd000u0006ym\" width=\"1080\" height=\"250\" \/><\/p>\n<ul>\n<li><strong>Other Optimizations<\/strong>: Turn off the use of shared video memory and turn off model hash calculations.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27715\" title=\"0d339c58j00sqknkj0055d000u000irm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/0d339c58j00sqknkj0055d000u000irm.jpg\" alt=\"0d339c58j00sqknkj0055d000u000irm\" width=\"1080\" height=\"675\" \/><\/p>\n<p>IV. Advanced settings<\/p>\n<p>In the advanced settings, we can also do the following:<\/p>\n<ul>\n<li><strong>Listening Settings<\/strong>: For remote access to Stable Diffusion.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27716\" title=\"5dc350f8j00sqknki000vd000u00070m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/5dc350f8j00sqknki000vd000u00070m.jpg\" alt=\"5dc350f8j00sqknki000vd000u00070m\" width=\"1080\" height=\"252\" \/><\/p>\n<ul>\n<li><strong>Launching the API<\/strong>: Linkage with other software, such as Photoshop.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27717\" title=\"343bb77cp00sqknki000zd000u0003tm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/343bb77cp00sqknki000zd000u0003tm.png\" alt=\"343bb77cp00sqknki000zd000u0003tm\" width=\"1080\" height=\"137\" \/><\/p>\n<ul>\n<li><strong>User Experience Settings<\/strong>: Select the interface style (dark or light).<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27718\" title=\"6089544ej00sqknki001ud000u0008lm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/6089544ej00sqknki001ud000u0008lm.jpg\" alt=\"6089544ej00sqknki001ud000u0008lm\" width=\"1080\" height=\"309\" \/><\/p>\n<ul>\n<li><strong>solution difficulties<\/strong>: Solve the problem of reporting errors during use.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27719\" title=\"7e754a28j00sqknkj0023d000u000irm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/7e754a28j00sqknkj0023d000u000irm.jpg\" alt=\"7e754a28j00sqknkj0023d000u000irm\" width=\"1080\" height=\"675\" \/><\/p>\n<ul>\n<li><strong>model management<\/strong>: Download and manage different models.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27720\" title=\"415e4e5aj00sqknkj00aed000u000irm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/415e4e5aj00sqknkj00aed000u000irm.jpg\" alt=\"415e4e5aj00sqknkj00aed000u000irm\" width=\"1080\" height=\"675\" \/><\/p>\n<p>V. Summary<\/p>\n<p>Through this section, we have learned the computer configuration requirements for Stable Diffusion, learned how to simply install Stable Diffusion through the integration package, and mastered how to set the launcher parameters. Now you can start your AI painting journey!<\/p>","protected":false},"excerpt":{"rendered":"<p>Today, we're going to explore together how to install Stable Diffusion on our local computer and generate our first image. If you can't wait to try this AI painting tool, then follow me to learn together! I. Stable Diffusion Computer Configuration Requirements Before we start the installation, we need to understand Stable Diffusion's computer configuration requirements. Here's an overview of the hardware configuration requirements: Memory: at least 8GB required, 16GB or higher recommended. GPU: Must be a graphics card model starting with NVIDIA with at least 4GB of video memory, 6GB or 8GB recommended, higher is better. CPU: As long as the graphics card is over the top and the CPU is not too bad, you can basically meet the requirements.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[2328,197,198,2894],"collection":[262],"class_list":{"0":"post-27703","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-ai","9":"tag-stable-diffusion","11":"tag-2894","12":"collection-stablediffusion"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/27703","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=27703"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/27703\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=27703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=27703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=27703"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=27703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}