<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ampere Hu on Medium]]></title>
        <description><![CDATA[Stories by Ampere Hu on Medium]]></description>
        <link>https://medium.com/@AmpereStudio?source=rss-7036993178ef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YDvnOzoLnsuQpBtWikNXCQ.png</url>
            <title>Stories by Ampere Hu on Medium</title>
            <link>https://medium.com/@AmpereStudio?source=rss-7036993178ef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:26:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AmpereStudio/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Installation Notes of Stable Diffusion WebUI]]></title>
            <link>https://medium.com/@AmpereStudio/installation-notes-of-stable-diffusion-webui-83ae3e0917da?source=rss-7036993178ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/83ae3e0917da</guid>
            <category><![CDATA[stablediffusionwebui]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai]]></category>
            <dc:creator><![CDATA[Ampere Hu]]></dc:creator>
            <pubDate>Tue, 27 Jun 2023 03:39:50 GMT</pubDate>
            <atom:updated>2023-06-27T03:59:39.993Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Installation Notes of Stable Diffusion WebUI" src="https://cdn-images-1.medium.com/max/1024/0*3AKWejvZfDC37Ps1.jpg" /></figure><p>Posted simultaneously on my website, <a href="https://amperestudio.com/">AmpereStudio.com</a>.</p><p>Starting off,<br>The hardware used for this article is a 2019 MacBook Pro 16&quot;.<br>Hardware specifications are as follows:</p><ul><li>Intel Core i9 2.4GHz</li><li>RAM 16GB</li><li>AMD Radeon Pro 5500M</li></ul><p>The operating system used is macOS Ventura.<br>The MacBook Pro 16&quot; 2019 has both Intel UHD Graphics 630 and AMD Radeon Pro 5500M. In order for Stable Diffusion to utilize AMD Radeon Pro 5500M properly, it is recommended to install <a href="https://gfx.io/">gfxCardStatus</a>, to force the switch and enable AMD Radeon Pro 5500M.<br>Software environment requirements:</p><ul><li>Python, version 3.10.6 is recommended, but other versions can be tried. Python 3.10.6 is my personal preference, and many of my current development projects use it. It is recommended to use Python Virtual Environment to ensure clean and conflict-free Python Package.</li><li>Git, to clone and update the Stable Diffusion WebUI Repository, it is recommended to use the git command line tool.</li></ul><p>What is Stable Diffusion? Let’s take a look at the explanation from the Wiki.</p><blockquote>Stable Diffusion is a deep learning, text-to-image model released in 2022. It is primarily used to generate detailed images conditioned on text descriptions, though it can also be applied to other tasks such as inpainting, outpainting, and generating image-to-image translations guided by a text prompt. It was developed by the start-up Stability AI in collaboration with a number of academic researchers and non-profit organizations.<br>Stable Diffusion is a latent diffusion model, a kind of deep generative neural network. Its code and model weights have been released publicly, and it can run on most consumer hardware equipped with a modest GPU with at least 8 GB VRAM. This marked a departure from previous proprietary text-to-image models such as DALL-E and Midjourney which were accessible only via cloud services</blockquote><blockquote><a href="https://en.wikipedia.org/wiki/Stable_Diffusion">https://en.wikipedia.org/wiki/Stable_Diffusion</a></blockquote><p>Let’s start the installation.<br><br>1. Create a working folder. The folder name is not limited, and it is recommended to use letters and/or numbers, and do not have spaces.</p><pre>mkdir stable_diffusion_webui</pre><p>2. Install Python 3.10.6 using pyenv. If you already have Python 3.10.6 or another version of Python environment, you can skip this step. pyenv is my preferred Python Version Management, similar to NVM, which allows you to have different versions of Python on a MacBook development environment. If you have a development project that requires a specific version of Python, pyenv allows you to switch quickly between different versions of Python and set the default Python version for different working folders.</p><pre>pyenv install 3.10.6</pre><p>3. Create a virtual environment. Since I use pyenv to install Python, the virtual environment also needs to use the virtual environment provided by pyenv.</p><pre>pyenv virtualenv 3.10.6 sd_webui<br># 3.10.6 is the Python version and must be installed using pyenv install<br># sd_webui is the virtual environment name, it is recommended to use English and numbers, and do not have spaces.</pre><p>4. Activate the virtual environment and set the virtual environment created in Step 3 as the default Python virtual environment for the working folder.</p><pre>cd stable_diffusion_webui &amp;&amp; pyenv local sd_webui<br># stable_diffusion_webui is the working folder created in step 1<br># sd_webui is the Python virtual environment created in step 3</pre><p>5. Clone the Stable Diffusion WebUI Repository from GitHub.</p><pre>git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git</pre><p>6. Download the Models. You can go to <a href="https://civitai.com/">https://civitai.com/</a> or <a href="https://huggingface.co/">https://huggingface.co/</a> to download the required Model, download in .safetensors or .ckpt format.<br><br>7. Run .webui.sh. If you see the following message on the command line,</p><pre>Running on local URL: http://127.0.0.1:7860</pre><p>it means that the preparation related to Python Package and execution has been completed. If you encounter</p><pre>permission denied: ./webui.sh</pre><p>during execution, please run</p><pre>chmod +x ./webui.sh</pre><p>8. Go to the URL in your browser: <a href="http://127.0.0.1:7860/">http://127.0.0.1:7860</a></p><figure><img alt="Stable Diffusion Initial" src="https://cdn-images-1.medium.com/max/1024/0*FPajjaWE9HM1mBEh.png" /></figure><p>9 .We can test it by entering A cute girl in the prompt. After entering it, click Generate. As shown below, I ran it using the AnythingV5 model.</p><figure><img alt="Stable Diffusion Testing" src="https://cdn-images-1.medium.com/max/1024/0*gDIaj2eQAV_567ZB.png" /></figure><p>After completing the above steps, we can start chanting the spell.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83ae3e0917da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>